Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

how can i achieve throu SMO

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ramesh Subramaniyan - 03 Jul 2008 10:40 GMT
EXEC sys.sp_bindefault @defname=N'[dbo].[def_UserID]',
@objname=N'[dbo].[tAA_MAD_Type4].[InsertedBy]' , @futureonly='futureonly'
GO
EugeneZ - 03 Jul 2008 12:53 GMT
try C#
see example:
http://www.megasolutions.net/Sqlserver/SMO_running-a-stored-procedure-in-C--6890
3.aspx


--
also see:
How to: Create, Alter, and Remove a Stored Procedure in Visual Basic .NET
http://msdn.microsoft.com/en-us/library/ms162553.aspx
Signature


http://www.sqldbatips.com/showarticle.asp?ID=34
and
http://www.sqlservercentral.com/articles/Stored+Procedures/usingparameterswithst
oredprocedures/2004/

Thanks,
Eugene Zhitomirsky
MCT, MCDBA, MCP, OCP

> EXEC sys.sp_bindefault @defname=N'[dbo].[def_UserID]',
> @objname=N'[dbo].[tAA_MAD_Type4].[InsertedBy]' , @futureonly='futureonly'
> GO
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.