Viewing 15 posts - 2,881 through 2,895 (of 7,191 total)
-- I've tweaked your table definition so as to use proper dates instead of months numbers
-- Notice the constraints to keep any dodgy dates out of the table
CREATE TABLE dbo.AssetPayments(
FileMonth...
December 22, 2015 at 3:53 am
So if the ExpectedDate changes, for example, from 2015-12-01 to 2016-01-11 then you could find yourselves renumbering the visits for two years - do I understand that correctly? What...
December 22, 2015 at 2:58 am
Sean's code is right. The reason your code didn't work was you missed out the parentheses:
SET @parameter = (select distinct column_name from table_name)
You won't get a syntax error for...
December 21, 2015 at 8:22 am
Sounds like a homework question. Here's a hint - order by NEWID().
John
December 21, 2015 at 3:12 am
Not tested, so probably riddled with syntax errors, but this should get you started:
WITH Nos(m) AS (SELECT 1 UNION ALL SELECT 2
UNION ALL SELECT 3 UNION ALL SELECT 4...
December 16, 2015 at 10:11 am
It's the double hop authentication issue. Your user credentials are being passed first to SQL Server and then to the remote server, which doesn't work unless you're using Kerberos....
December 16, 2015 at 9:37 am
Danielle
What is "does not work" - returns the wrong results, or gives an error? Please can we see your whole query? You seem to have an odd number...
December 16, 2015 at 8:42 am
Does this need to be real time, or periodical (for example nightly)? For real time, consider merge replication. For periodic, consider an ETL tool such as SSIS.
John
December 16, 2015 at 3:34 am
rajeshjaiswalraj (12/16/2015)
So you want to say if my mdf file size is 1mb after rebuilt it has to becomes 1.5.
No, I'm saying if your largest table is 1MB and you...
December 16, 2015 at 3:13 am
rajeshjaiswalraj (12/16/2015)
If i m doing rebuilt index what will be increase .mdf or .ldf file.
Assuming you're not sorting in tempdb, allow roughly 1 to 1.5 times the size of your...
December 16, 2015 at 2:31 am
fawad.majid (12/14/2015)
do you have DMV script which i can use with my linked serversThank you for reply John
No. I'm not aware of any. They may exist -...
December 15, 2015 at 2:10 am
There's several ways of doing it. Set up a Central Management Server in SSMS, then register all your servers and run a query to get the server name on...
December 14, 2015 at 9:58 am
Shouldn't the copy syntax be like this?
copy S:\Log\xxxx_log.LDF v:\logs
John
December 14, 2015 at 9:31 am
Generating the EXEC statements and then running them one by one will work, but it's not the most efficient way of doing it, especially when you have so many customers...
December 14, 2015 at 4:53 am
No, you can't do this without rewriting your stored procedure. Please post table DDL in the form of a CREATE TABLE statement, sample data in the form of INSERT...
December 14, 2015 at 3:43 am
Viewing 15 posts - 2,881 through 2,895 (of 7,191 total)