|
Comments and Discussions
|
 |
|
 |
How can i pass this userdefined datatype as sqlparameter from frontend?
|
|
|
|
 |
hello
Whenever I want to deploy I see this error message
Error 1 Type "SqlServerProject1.SecurityMode" is marked for native serialization, but field "_sm" of type "SqlServerProject1.SecurityMode" is of type "SqlServerProject1.SM", which is not marked with "LayoutKind.Sequential". Native serialization requires the type to be marked with "LayoutKind.Sequential". SqlServerProject1
SM is an enum.
|
|
|
|
 |
You have done a great job. I realy learned how to creat a SqlUserDefinedType and Integrate it in SqlServer. Great work!
Ever Respect the elders
|
|
|
|
 |
hi Subai,
In creating user define data types in SQL server 2005 , i have done all the things you have given in the procedure.
I have succeeded in building the application.
But when i tried the deploy option for deploying my application, i faced an error message which i have mentioned on the next line.
Error message :-
"Incorrect syntax near 'SqlServerProject1'"
"SqlServerProject1" is my project name.
So please help me to solve this problem.
waiting for your reply,
Gerard
|
|
|
|
 |
hi Gerard
successful build, means a correct program structure and not successful deploy, means something wrong with data base
it's a general error
check that you enabled clr and make sure the connectionstring is correct
otherwise if your database supports clr and connectionstring is correct
i just cant't figure out the problem
sorry fella
I Wish the Life Had CTRL-Z
|
|
|
|
 |
Hi Hamed (subai)
very nice article. thx
I have similar problem while I try to deploy the assemby to my database. I can use SQL Server Management Studio to import the maganged dll but from within the Visual Studio I get the following error:
The current database compatibility level does not support managed objects.
I did run the EXEC sp_configure 'clr enabled', '1' reconfigure on the database but even when I got it imported manually I could not see my new data type nor the stored procedures I created.
do you have any idea?
regards
Asghar
|
|
|
|
 |
I have the same issue. Ran the sp_configure and the reconfigure but still get "the database compatibility level does not support managed objects" error.
Any ideas?
|
|
|
|
 |
Found my issue:
In Sql Server Management Studio, right click the database > Properties > Options > Compatibility level (set to SQL Server 2005 or 2008).
I can now deploy from Visual Studio.
|
|
|
|
|
 |
where when ?
I Wish the Life Had CTRL-Z
|
|
|
|
|
 |
i can't understand your problem but this may help http://msdn2.microsoft.com/en-us/library/a8s4s5dz.aspx
I Wish the Life Had CTRL-Z
|
|
|
|
 |
Problem solved. I was using a SQL Server 2000 (80) instead a SQL Server 2005 (90) database. Thank you.
|
|
|
|
 |
I'm getting the same error, too, when I deploy. I use SQL Server version 9.0.3054, and VS 2005 Version 2.0.50727 SP1
|
|
|
|
 |
Although you are using SQL Server 2005 you must configure the database you are using in the properties->options->Compatibility level to SQL Server 2005 (90) too.
|
|
|
|
 |
I think it is usefull
Emre
|
|
|
|
 |
I wish it was
I Wish the Life Had CTRL-Z
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
|
First Posted | 20 Sep 2006 |
Views | 86,619 |
Bookmarked | 30 times |
|
|