Viewing 15 posts - 12,736 through 12,750 (of 13,469 total)
remember that a stored proc is really just a formula, just like A2 + B2 = C2;
A,B and C would have a datatype you can discover, but they do not...
February 8, 2007 at 1:59 pm
here's a procedure that you pass the tablename...it cursors thru every column in the table, and if any column is null, adds it to the results table, and finally returns...
February 8, 2007 at 1:45 pm
also, check the actual values:
If rsLogin("UserType") = "user" OR rsLogin("UserType") = "cust" Then %>
if rsLogin("UserType") is NULL, an error would occur. check the table that contains the column UserType and...
February 8, 2007 at 6:03 am
based on the error messge, it sounds like the function is calling a sotred proc in it's body; if you want to send me a priv message witht eh function...
February 7, 2007 at 12:17 pm
I think it's because your server name has single quotes in it, which is invalid. i know you can use double quotes, but not single.
bad: DRIVER={SQL Server};SERVER='ISERVER';UID=sql_dba_link;PWD=MyPwd;Initial Catalog=SQL_DBA
good: DRIVER={SQL...
February 7, 2007 at 11:31 am
does this return a value? this should do the same thing you did when assigning it to the @x variable.
SELECT dbo.fnCalcBusHours( 1, 1, '8/31/2004 10:18:30 PM'
February 7, 2007 at 11:16 am
this might help: it shows each table, and what filegroup a table belongs to. if you only have ONE datafile per filegroup, then the table is contained in that datafile.
if...
February 7, 2007 at 11:05 am
i believe xdate1 is creation date, while xdate2 is last changed date?
this would list all users that havne't changed their pass in >60 days i think. yould probalby use this...
February 7, 2007 at 9:49 am
pretty much all functions have to be preceeded by the owner (usually dbo.)
this will work:
select Incident_Number, dbo.fnCalcBusHours(Cust_Id, Service_Id, open_time, close_time)
February 7, 2007 at 6:31 am
i had this saved in my snippets catalog: you can use it to determine whether statistics need to be run, or to run them. a paramter of I gets information(default),...
February 7, 2007 at 6:16 am
if you change your collation as seen below, you should see the results you expect:
CREATE TABLE [t1] (
[txt] [char] (5) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,
[nbr] [tinyint] NULL
) ON [PRIMARY]
GO
when you...
February 6, 2007 at 4:53 am
select dateadd(mi,1439,'05/07/2007') returns 2007-05-07 23:59:00.000
select dateadd(s,86399,'05/07/2007') returns 2007-05-07 23:59:59.000,
so create a statement like :
WHERE DATEFIELD BETWEEN '2/1/2007' AND dateadd(mi,1439,'2/6/2007')
February 5, 2007 at 12:12 pm
this will turn into an interesting thread, I'm sure...
If you take my data and put it into a database structure, the data is still mine, right? So If I learn...
February 5, 2007 at 11:40 am
this is a common issue, because the field you are querying contains date AND time....so records exist that are 02/05/2007 10:49:00 AM for example, which is not less that 02/05/2007..it's...
February 5, 2007 at 11:29 am
seems like kinda of a catch 22...you want to use sp_executesql, which is limited by it's paramater to a NVARCHAR 4000, but your command is potentially larger than 4000 chars.
I...
February 5, 2007 at 9:14 am
Viewing 15 posts - 12,736 through 12,750 (of 13,469 total)