Viewing 15 posts - 6,916 through 6,930 (of 13,469 total)
shilpa.shankar87 (8/22/2011)
The specified schema name "sys" either does not exist or you do not have permission to use it.
Im getting above...
August 22, 2011 at 5:49 am
nope, no non-clustered indexes either
indexes must always point to an object within a given database.....but the original table in the original database can have indexes up the wazoo. if they...
August 19, 2011 at 2:01 pm
glad that my example got you thinking!
that one's from an old post where someone wanted ranges from like AA001,AA002,AA003 thru ZZ999
the table under that i tested for AAA0001 thru ZZZ9999,...
August 19, 2011 at 12:25 pm
probably easiest to simply change the cursor to filter on only the databases that are not in SIMPLe recovery already
change the cursor definition to this:
declare c1 cursor for
select
...
August 19, 2011 at 12:18 pm
here's something i use on my dev server...don't need anything in FULL recovery mode on that server at all...it's a play ground.:
USE MASTER
declare
@isql varchar(2000),
@dbname varchar(64)
declare c1 cursor for select name...
August 19, 2011 at 11:44 am
in my case, I have a couple of tables i need to update statistics on a couple of times a day in order to assure good performance.
Typically you really only...
August 19, 2011 at 11:35 am
can't be done.
by definition, an indexed view creates an index on an object in the database, so it becomes materialized as if it were a table, and an...
August 19, 2011 at 10:52 am
JT-328471 (8/19/2011)
Sorry, what I meant was you aren't defining your rowterminator. Use a \ n (remove spaces)
he probably pasted it right...the forum here strips out \n unless you html-ize...
August 19, 2011 at 10:24 am
sqlfriends (8/19/2011)
August 19, 2011 at 9:33 am
unless you can make specific assumptions, there's no easy way to do this.
if the first x number of columns are the same across all csv files, that might be a...
August 19, 2011 at 9:04 am
here's a snippet based on Seans example, that gets all the tables in FK hierarchy order and generates the Truncates/delete commands for you, so you don't have to drop and...
August 19, 2011 at 8:58 am
sp_helplogins returns two different result sets.
here's a table of the first result set i got from running this and scripting the table:
/*
SELECT *
INTO #sp_helpLogins
FROM OPENROWSET('SQLOLEDB','Server=DEV223;Trusted_Connection=Yes;Database=Master',
...
August 19, 2011 at 8:44 am
you can do it, but you still need an identity() column in your table.
here's an example, see how because of the assumed format with a max length of 5, you...
August 19, 2011 at 7:26 am
R.P.Rozema (8/19/2011)
August 19, 2011 at 7:10 am
just one more thing...you can do it kind of, but the stored proc must return unique column names
SELECT *
INTO #temp
FROM OPENROWSET('SQLOLEDB',
'Server=DEV223;
Trusted_Connection=Yes;
Database=Master',
'Set FmtOnly OFF;
EXEC dbo.sp_Who')
the above works.
if...
August 19, 2011 at 6:59 am
Viewing 15 posts - 6,916 through 6,930 (of 13,469 total)