Showing posts with label updated. Show all posts
Showing posts with label updated. Show all posts

Friday, March 9, 2012

Errors Connecting...

-- EDIT --
I'd like to add that I've updated all the references in my project to SQL 10.0
-

Hello,

I am just getting started evaluating 2008 (July CTP) with our existing codebase. When I connect to the server to initiate the process of installing our database, I get the following exception:
{"This SQL Server version (10.0) is not supported."}. Could this be related to my workstation not having an up to date .NET framework?

The code to connect is:

.....
Microsoft.SqlServer.Management.Smo.Server server = null;
try
{
SqlConnection sqlConnection = new SqlConnection(@."Integrated Security=SSPI; Data Source=" + tserver);

//build a "serverConnection" with the information of the "sqlConnection"
Microsoft.SqlServer.Management.Common.ServerConnection serverConnection =
new Microsoft.SqlServer.Management.Common.ServerConnection(sqlConnection);

//The "serverConnection is used in the ctor of the Server.
server = new Server(serverConnection);

// The actual connection is made when a property is retrieved so try to get version.
// an error means could not connect, most likely due to security
//string x = server.Information.Version.ToString();
System.Version x = server.Information.Version;
}
catch(Exception ex)
{
server = null;
Errors = "Unable to connect to the " + tserver + " server.\r\n" + ex.Message;
}
......
You probably need to use the updated assemblies. After installing SQL Server 2008, you will find them in C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies.

In particular Microsoft.SQLServer.Smo.dll|||My problem was that I missed updating the assemblies in a couple of the DLL's in the project, which caused the problem.

Sunday, February 26, 2012

Error{no row is was updated}

hey expert out ther..

i have encounter this error ..and i dont know what is the wrong with it..

the error goes:

No row was updated

Error source: .net SQLClient Data provider

Error Message:string or binary data would be trancated.

plz help me to slove this prob.

thanks in advance!!!!!!!

Could you please provide more information, code sample causing this error?

Thanks

|||

Ehm.......there was no code thats cause this error...

It was ok when i just add data in two rows...but once i input more than 2 rows..

this error will occur!!!!!

|||

Hi

I guess you mean, that you see this error, when you put in data in tht sql management programm to the opended database table.

I have the same errormessage. There are at about 8 tables and different relations, quite a small database. When I'm trying to change table properties and klick the save button the wizard shows me the other affected tables and tells me, that there could be errors with the rowguid column. And of course there are problems and changes to the table properties aren't able.

Besides I think, that also this rowguid column has something to do with the errormessage we get, because when entering a new row, no "uniqueidentifier" is generated in the specified column of rowguid.

I hope that now someone could help us.

best regards

Hannes