Viewing 15 posts - 5,776 through 5,790 (of 13,468 total)
michael.packard (3/16/2012)
No, SSMS is closed when I'm editing the registry, I wasn't specifically running regedit in administrator mode, but even when I did, my changes were overwritten.
darn, sorry Michael, that...
March 16, 2012 at 12:15 pm
well the commands to create and delete are like this:
but that's done via a command line...i'm not sure wehterh you'd do that in a script.
I've done it via xp_cmdshell before...
March 16, 2012 at 12:13 pm
ouch.
so developers edit a procedure to manipulate data they are not supposed to touch, then put the original procedure body back to it's "normal" definition?
AND this is happening on Production?
wow.
my...
March 16, 2012 at 12:05 pm
Are you editing the registry while SSMS is still open? i think it saves it's settings on exit, so you might be deleting the key, and closing SSMS re-writes the...
March 16, 2012 at 11:59 am
Error 1068: The dependancy service or group failed to start .
control Panel>>Administrator Tools>>Services:
sounds like the password for the user running the service might have changed, or was never set...
March 16, 2012 at 10:29 am
QQ-485619 (3/16/2012)
March 16, 2012 at 9:03 am
Mandeep Dulai (3/16/2012)
Excellent script! Currently migrating to a new SQL Server and this has saved me a ton of time. Thank you!
glad it helped you out!
March 16, 2012 at 8:58 am
start with sys.indexes, and you have to join sys.index_columns and sys.columns
select
object_name(IDX.object_id),
IDX.name,
cols.name,
* from sys.indexes IDX
INNER JOIN sys.index_columns IXCOLS
ON IDX.[object_id] = IXCOLS.[object_id]
AND IDX.[index_id] ...
March 16, 2012 at 8:57 am
is the server an express instance , where remote connections are not enabled by default?
is it the default instance or a named isntance, and is the SLq broswer service running?
from...
March 16, 2012 at 7:44 am
it looks to me like the cost of SQL Server 2008 starts at around $3,000 dollars...well maybe 6K for a dual proc multi core, 12k for a Quad Proc multi...
March 16, 2012 at 6:20 am
weston_086 (3/15/2012)
ALTER TABLE [dbo].[test] ADD DEFAULT ((convert(int,convert(datetime,'12/31/2099')))) FOR [id]. it will set default...
March 15, 2012 at 3:13 pm
asc files are just plain old text files. open them up in notepad...you'll see the extension doesn't matter, the contents are plain text, the same way .txt files are.
March 15, 2012 at 3:09 pm
well, you should store dates in datetime columns. you end up wasting a lot of time converting int values to dates and back again when it is not...
March 15, 2012 at 2:23 pm
well in theory, you split the column on the space betwen the words...
but the issue is, "you cannot tell the which is the "middle" name between "James Tiberius Kirk" and...
March 15, 2012 at 1:59 pm
my version, which accepts a dynamic number of words, splitting them by the space between words:
CREATE PROCEDURE [dbo].[CategoryName] @SEARCHSTRING varchar(1000)
AS
DECLARE @COLUMNNAME VARCHAR(128),
...
March 15, 2012 at 1:56 pm
Viewing 15 posts - 5,776 through 5,790 (of 13,468 total)