Viewing 15 posts - 6,256 through 6,270 (of 13,469 total)
it's just a simple update...
UPDATE MyTable
Set MyDateColumn = NULL
WHERE MyDateColumn ='1900-01-01'
December 9, 2011 at 7:07 am
omidshf (12/9/2011)
can a stored procedure run automatically when data files attach to a database?
you mean when a database is attached, right? or do you mean when a database is...
December 9, 2011 at 6:17 am
ColumnList was a placeholder for multiple columns, not just a single one;
I would image that table has half a dizen NOT NULL columns.
you'll have to sp_help it, understand it's structure,...
December 8, 2011 at 1:29 pm
here's one fast way: to use this code, you HAVE to knwo what table, and which columns you are going to insert.
insert into TargetTable(ColumnList)
SELECT
TOP 400000
ColumnList
FROM TargetTable
CROSS JOIN sys.columns...
December 8, 2011 at 1:13 pm
anthony.green (12/8/2011)
Sorry Lowell is that to myself or to Halifaxdal?
wow you guys posted a lot of stuff while i tested my script;
when i thought i was posting, there were...
December 8, 2011 at 9:45 am
how did you test that? did you grant anything to, say a public or other role the user might be in;
this worked perfectly fine for me:
--Create the Roles used to...
December 8, 2011 at 9:39 am
if the column you are searching is a char and not varchar, it might not truely end in LA;
try WHERE RTRIM(ColumnName) LIKE '%LA' instead
December 8, 2011 at 9:28 am
nope no way to prompt or alert, not without you creating an application to do that for you.
SSMS executes code, and presents the results...that's the typical applicaiton you might use.
based...
December 8, 2011 at 9:25 am
It sounds like you were looping through every stored proc name;
if the role is going to have EXECUTE priviledges on all procs, without exception, i think you can simply do...
December 8, 2011 at 9:00 am
well, it really on if (and how) you've set up your proc to return success or failure;
you know a proc can return results in any and all of three different...
December 8, 2011 at 8:45 am
convert the date right away to time, and then you are working with hours from 0 to 23:59:59;
so when you round the TIMe, it's between 0 and 23:
--returns 10 AS...
December 8, 2011 at 8:05 am
rebuilding indexes wth sort in tempdb, maybe?
December 8, 2011 at 7:59 am
Ok if you can connect via SSMS from the 2005 machine to the 2008 Express, you can create a linked server;
change the server name belwo, and tell me if...
December 7, 2011 at 2:47 pm
there are a lot of variables in there...
for example, by default, SQL Express does not allow remote connections...it has to be explicitly enabled.
can you connect via SSMS from the Other...
December 7, 2011 at 2:30 pm
for #3, a Windows machine that is logged in will pass the token related to the user to the SQL server.
the token has the built in assumption that if...
December 7, 2011 at 11:56 am
Viewing 15 posts - 6,256 through 6,270 (of 13,469 total)