Viewing 15 posts - 376 through 390 (of 13,429 total)
your Table structure has all the columns in brackets, so that the name with spaces doesn't break the CREATE TABLE command..
your Foreign keys simply need to have the same logic.
July 19, 2017 at 10:04 am
Doing a best guess at Foreign keys depends on the design and proper naming conventions.
for example, do all the tables have primary keys? are they properly named? (ie TableNameID...
July 18, 2017 at 11:45 am
The SQL Error Log has what you are looking for
Every time an instance is restarted, the previous log is closed and marked as archived, and the new one is...
July 18, 2017 at 6:45 am
Hashbytes is a varbinary(8000) return value, so you need a larger column, and then you are all set.
you do NOT need to filter or edit your columns for dashes...
July 17, 2017 at 10:02 am
sure the final result must be one of those data types....but you can convert your columns to the acceptable data types and you are all set.
and anyplace they say...
July 17, 2017 at 6:46 am
files are actually zip files with a sqlplan extension.
On Plan1_server1 you can see the estimated and actual number of rows are way off(estimated = 91.2K, actual = 1.8K,...
July 17, 2017 at 6:45 am
variable, string OR [COLUMN NAME] of type varchar/nvarchar is accepted for the parameter!
so if you choose a column, or the converted value of a column that is NOT a...
July 17, 2017 at 6:31 am
For the RevenueAmt, if the datatype is MONEY, the convert function has an additional parameter and will insert your commas for you. if it si a decimal, you have to...
July 17, 2017 at 6:27 am
I did this once, when we identified that developers were using the application login as their dev login to do work. I got the management buy in that this should...
July 14, 2017 at 8:16 am
As John Mitchell noted in the other thread,,all you can do is reasonably infer the person, based on the IP address or hostname(whihc technically can be spoofed in the connection...
July 14, 2017 at 8:07 am
the first table should be sysjobs, as some jobs may exist but have NEVER been executed,and thus have no history.
also, the joins should be LEFT JOINs, since jobs could...
July 14, 2017 at 6:57 am
Robert, are you talking about each Server in an Always On Availability Group, or a Windows Server Failover Cluster with shared storage and a cluster aware SQL instance?
You...
July 13, 2017 at 8:27 am
I've seen issues like this in the GUI scripting; when you use an older version of SQL Server Management Studio(lets say 2008 or 2012) and are connecting to a higher...
July 12, 2017 at 6:26 am
you could do it as a string representation like this:
/*--results
ElapsedString Days Hours Minutes Seconds Milliseconds
3:03:30:11 3 3 30 11 446
*/
WITH MySampleData
AS
(
SELECT
[Days] = datediff(day,0,ET-ST),
...
July 11, 2017 at 3:06 pm
Viewing 15 posts - 376 through 390 (of 13,429 total)