last day (14 days later) » 

6:50 AM
0
A: Why i'm getting error for the Microsoft.SqlServer.Server namespace?

JamelChange your namespace from Microsoft.SqlServer.Smo to Microsoft.SqlServer.Management.Smo

 
Hi jamal,but i can not found the Microsoft.SqlServer.Management.Smo
 
Your sql have the library Microsoft.SqlServer.SmoExtended.dll. Search that and add it to your project.
Mostly its in C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies. Tell me when you found it!
 
i found that and add the reference but so get error!
 
What error?????
 
i update my question and show error in the picture
 
6:50 AM
Again your are using wrong namespace.
 
But i use the Microsoft.SqlServer.SmoExtended.dll
 
Add references to: -> Microsoft.SqlServer.ConnectionInfo.dll -> Microsoft.SqlServer.Smo.dll -> Microsoft.SqlServer.Management.Sdk.Sfc.dll -> Microsoft.SqlServer.SqlEnum.dll
 
سلام جمال
 
wasalam
Did it worked?
 
خوبی؟
 
6:51 AM
No i don't understand your language
 
please wait to check that
 
ok
 
can you speak persian?
 
No
 
ahhhhh,not work
 
6:55 AM
Now what error?
 
microsoft.sqlserver.server is name space but you use like 'type'
 
Wait. I do check it
 
thanks my friend
 
u their?
??
 
7:06 AM
First add using Microsoft.SqlServer.Management.Smo;. Is it giving any error?
 
ok please wait
 
ok
and change to Microsoft.SqlServer.Management.Smo.Server in where you had added Microsoft.SqlServer.Server
 
i follow step by step but so get that error!
 
Now what error?
 
microsoft.sqlserver.server is name space but you use like 'type'
 
7:12 AM
Change that line to Microsoft.SqlServer.Management.Smo.Server
 
ok
please wait
error delete,please wait to check my program
 
ok
 
thats work
thanks my friend
 
Can you rate or check my answer now?
 

last day (14 days later) »