Viewing 15 posts - 6,901 through 6,915 (of 7,608 total)
drew.allen (1/21/2013)
ScottPletcher (1/21/2013)
I guess...
January 21, 2013 at 3:43 pm
What you really need is someone that has experience doing it, period. This is not something that you can just "wing it".
If you have to do it with no...
January 21, 2013 at 3:13 pm
Huh? I don't see anywhere a "datetime" data type is specified, only varchar. I don't see why the code couldn't run fine as is.
I guess your actual...
January 21, 2013 at 2:46 pm
No, you should not have to; the db engine takes care of that itself.
From Books Online:
"
If the value inserted is larger than the current identity value for the table, SQL...
January 21, 2013 at 2:24 pm
INSERT INTO dbo.T1 ( ... )
SELECT t2.col1, t2.col2, ...
FROM dbo.T2 t2
LEFT OUTER JOIN dbo.T1 t1 ON
t1.Name = t2.Name
WHERE
t1.Name IS NULL --only include...
January 21, 2013 at 2:18 pm
The first is a datetime2 format, the second is a datetime format.
Try CASTing to datetime2 first, then CASTing that to datetime.
CAST(CAST(column_name AS datetime2) AS datetime)
January 17, 2013 at 1:19 pm
SELECT *
FROM <db_name>.sys.database_files
WHERE
type_desc <> 'LOG'
January 17, 2013 at 1:15 pm
DBA24 (1/17/2013)
I have a primary key on a column that is a unique identifier (width 32 char) and it is nonclustered. There are a lot of inserts, updates and...
January 17, 2013 at 1:04 pm
For that, I would use a function with PATINDEX to retain only the desired chars.
If performance is not an issue, you can use a scalar function.
I can give you a...
January 17, 2013 at 12:58 pm
Better yet, forget the dopey "cluster first by identity" and cluster the table the best way: that is THE most important thing for performance.
Based on what you've posted, it seems...
January 15, 2013 at 4:23 pm
As Lowell states, they're not really orphaned.
Extended properties that aren't explicitly subordinated to a db object apply to the db itself.
That is, if you add extended properties w/o specifying a...
January 15, 2013 at 3:39 pm
All I can see from what you've posted so far is the check for:
activeclient > 0
in the subquery (patient count) but not in the outer query (attendance count).
It seems possible...
January 15, 2013 at 3:34 pm
The "sqlcmd" utility does recognize "GO", as well as many other things, including invoking OS cmds.
I think you should be able to use "sqlcmd" to run the scripts.
January 15, 2013 at 3:25 pm
opc.three (1/14/2013)
YSLGuru (1/14/2013)
opc.three (1/12/2013)
January 14, 2013 at 4:52 pm
Yes, I would change the specific SQL user login to match the person's name, if all/part of the name itself is being used as part of the login.
Use roles, where...
January 14, 2013 at 3:56 pm
Viewing 15 posts - 6,901 through 6,915 (of 7,608 total)