Viewing 11 posts - 1 through 11 (of 11 total)
Ramesh,
I'm trying this, but getting an error that Dts "Name is not declared". I must be missing something here. Here is my code.
Imports System
Imports System.Data
Imports System.Math
Imports...
March 17, 2009 at 12:04 pm
This will be very helpful to me in the future, I'm sure. Thanks for the posting.
January 22, 2004 at 10:52 am
Thanks, Andy. Do you have any code samples or can you point me to a resource on how to check sysprocesses for connections to the db and then killing...
November 22, 2002 at 9:04 am
I am using the Andy Warren's code to do the restore, and it does not connect to any database to perform the restore, it connects to server only. Like...
November 21, 2002 at 9:03 am
Thank you SO much. It works!
It was the line: keyPKMyTable.Name = "pk_mytable" that I was looking for! 🙂
Where did you find the sql-dmo samples?
October 2, 2002 at 8:12 am
This is my experience with the sqldmo.dll on the client. I wrote my app using a reference to SQLDMO.dll version 80. Created package using P&D wizard. The...
September 12, 2002 at 2:42 pm
Andy,
This field name "source_emp_id" does exist in another table, but it is not defined as a foreign key.
I have emailed you the entire trace as a txt file....
September 11, 2002 at 12:20 pm
Andy,
I am still getting the error: Line 1: Incorrect syntax near dbo. I have profiled it and the code generated is as follows: The error occurs on...
September 11, 2002 at 10:21 am
I'd try profiling to see what you get with SQL7, maybe that will help figure it out.
By profiling, do you mean running on SQL7? If so, yes, I...
September 5, 2002 at 3:48 pm
Andy, Here is the code that creates the table columns.
Dim tblAdvCustomers As New SQLDMO.Table
tblAdvCustomers.name = "tblAdvCustomers"
tblAdvCustomers.FileGroup = "PRIMARY"
'Create the column objects using my CreateTableColumn procedure
CreateTableColumn tbllAdvCustomers, "cust_id", "varchar", False, ,...
September 5, 2002 at 3:09 pm
The key field is defined: cust_id, char, False (for allow nulls), 8
for length.
Set namesPKtblAdvCustomers = keyPKtblAdvCustomers.KeyColumns
NamesPKtblAdvCustomers.Add "cust_id"
tblAdvCustomers.BeginAlter
THE NEXT LINE CAUSES ERROR
tblAdvCustomers.Keys.Add keyPKtblAdvCustomers
I can post the code that creates the...
September 5, 2002 at 2:38 pm
Viewing 11 posts - 1 through 11 (of 11 total)