Viewing 14 posts - 1 through 14 (of 14 total)
Try using BCP In from the command line using code similar to this.
bcp tblMyTable IN myfile.bcp -S MyServer -f MyFormatFile.XML -h "TABLOCK"
July 12, 2012 at 3:43 pm
Hi Karl,
My apologies, you are correct, PRIMARY <> DEFAULT.
Can you try this?
use [MyDB]
GO
DENY INSERT ON [dbo].[MyTable] TO [MyTestLogin]
GO
DENY DELETE ON [dbo].[ MyTable] TO [MyTestLogin]
GO
DENY UPDATE ON [dbo].[ MyTable] TO [MyTestLogin]
GO
The...
July 4, 2012 at 9:29 pm
I am pretty sure you can create a new filegroup and set it as the default filegroup. This will then allow you to set the original filegroup to read only.
After...
July 4, 2012 at 6:32 pm
Moving the log table to a new filegroup and set the others to read only is probably the easiest option. The other way is to create a view for each...
July 4, 2012 at 5:57 pm
It will be helpful if you can send me some t-sql code. Also, is there any foreign keys defined on this table? Or is there any views based on this...
July 2, 2012 at 6:34 pm
Are you adding the primary key to an existing column in the table?
July 2, 2012 at 6:14 pm
What took 25% longer to implement? Adding a non-clustered primary key with nockeck? This is not possible. WITH NOCHECK skips the checking of data before the primary key is created....
July 2, 2012 at 5:52 pm
You can use the "WITH NOCHECK" option when creating the Primary key.
Example:
ALTER TABLE test WITH NOCHECK
ADD CONSTRAINT PK_test PRIMARY KEY (Id)
The above statement will create a new unique...
July 2, 2012 at 5:29 pm
Will you be creating a clustered index as part of the primary key? If so, drop all nonclustered indexes first, add the clustered primary key index and then recreate the...
July 2, 2012 at 4:39 pm
Sp_updatestate is a Microsoft system stored procedure and it uses UPDATE STATISTICS to update the stats. However, sp_updatestats only updates the statistics that requires updating. This is determined in the...
October 4, 2009 at 4:53 pm
I have turned off autostats before I did the fullscan.
October 4, 2009 at 4:31 pm
rowmodctr is not updated for partitioned tables...that is part of my problem.
See this link for more info: http://msdn.microsoft.com/en-us/library/ms190283.aspx
September 22, 2009 at 7:42 pm
I also have several Microsoft certifications under my belt. I sit these exams to get closure. As soon as I pass the exam, I can start with a new one.
July 1, 2009 at 12:34 am
Try dropping or disabling your indexes before the insert.
http://stackoverflow.com/questions/751039/slow-bulk-insert-for-table-with-many-indexes
July 1, 2009 at 12:08 am
Viewing 14 posts - 1 through 14 (of 14 total)