Viewing 15 posts - 10,741 through 10,755 (of 13,469 total)
thanks for the feedback Bill;
I had initially tried to use the INFORMATION_SCHEMA views to build a script like this...the problem is, those views do not contain all the information. which...
July 28, 2009 at 7:12 am
it's in books oline:
BACKUP MASTER KEY
RESTORE MASTER KEY
July 27, 2009 at 7:24 pm
excellent job posting the CREATE and INSERT statemetns.
Thank you!
getting the output you want is easy; it's exactly what the new row_number() function is for.
updating the existing table is hard,...
July 27, 2009 at 12:11 pm
if you could provide the actual table definitions, you could get a more refined answer.
basically what you want to do is LEFT join all the tables, so you get either...
July 27, 2009 at 11:12 am
I'm assuming you want to see the text of your procs....
any of of these will get you started:
select * from INFORMATION_SCHEMA.ROUTINES
select * from sys.all_sql_modules
select * from sys.procedures --just procs
July 27, 2009 at 10:10 am
only way i could think of was to use parsename and do a double convert from int back to varchar:
declare @ipAddress varchar(20)
SET @ipAddress='010.000.123.094'
SELECT
CONVERT(varchar(3),convert(int,parsename(@ipAddress,4))) + '.' +
CONVERT(varchar(3),convert(int,parsename(@ipAddress,3))) + '.' +...
July 27, 2009 at 9:44 am
you might want to attach your proc, instead of copying and pasting it.
just from what you pasted, i see one way to improve it:
you mentioned you are using some functions,a...
July 27, 2009 at 8:41 am
I've done almost the same thing that Grant is talking about;
for a .net web page suite, we slapped together a couple of utilities that spidered all the web pages so...
July 27, 2009 at 7:54 am
not really...you could call the procedure prior to your users calling it to get it compiled, but it depends on what it is doing. does it just SELECT data or...
July 27, 2009 at 7:41 am
that is normal.
the first time a procedure gets run, an execution plan is created and saved. that takes longer.
after that plan is created, subsequent calls are much faster.
if the procedure...
July 27, 2009 at 7:16 am
ok i think i see the reason, but not the solution.
float, without the size defined , is defaulted to a float(53), which is an 8 byte double precision.
if i...
July 27, 2009 at 5:07 am
how about the free one from microsoft? one of my web hosts uses it, it's basically a web based SSMS/Enterprise manager:
July 27, 2009 at 4:41 am
it looks like all you want to do is remove the extra zeros.
to do that, you need to decide on the precision of your @A5 variable.
here's your same code,...
July 27, 2009 at 4:32 am
something like this is pretty close; I don't know the sql to get the temp table, and I'm not sure of the table that the old function uses.
the sql...
July 27, 2009 at 4:01 am
your function is fine, it's the function call...
since it is returning a table, you need SELECT * FROM, not SELECT:
select * from dbo.testFunction(getdate(),getdate()+30);
--results:
2009-07-27 00:15:08.460
2009-07-28 00:15:08.460
2009-07-29 00:15:08.460
2009-07-30 00:15:08.460
2009-07-31 00:15:08.460
etc....
July 26, 2009 at 10:18 pm
Viewing 15 posts - 10,741 through 10,755 (of 13,469 total)