Viewing 15 posts - 2,581 through 2,595 (of 7,191 total)
sqlnewbie17 (6/1/2016)
I am able to connect
Yes, but only to the first server. Find out why the connection to the second server is failing, and your package will then run...
June 1, 2016 at 2:46 am
I would strongly advise using the database layer to return the data, and the presentation layer to make it look pretty to the user. If you insist on formatting...
June 1, 2016 at 2:37 am
Looks like it's the concatenation part you're struggling with. Work your way through this[/url]. It looks quite daunting, but you should find something there that works for you.
John
May 31, 2016 at 4:21 am
Your query mentions at least one column that you didn't tell us about in your original post. Please will you post DDL in the form of a CREATE TABLE...
May 31, 2016 at 3:23 am
Please post what you've already tried so that we can see what you're struggling with. If it's getting the time difference, use DATEDIFF. If it's getting a corresponding...
May 31, 2016 at 3:00 am
Sysprocesses is a view of the processes that are running on SQL Server. You can't update it. If you want to stop any of those processes running, use KILL....
May 31, 2016 at 2:57 am
So you see that error message when you attempt to do the restore? Please will you post the RESTORE statement that you're running?
John
May 26, 2016 at 9:31 am
Well, you could fiddle about with an SSIS package or linked servers or similar wizardry, but I think the way I'd do it is to build the INSERT script on...
May 26, 2016 at 9:23 am
We can't see your screen, and we can't read your mind, so this is all guesswork, but how about this?
WITH Numbers AS (
SELECT n
FROM (VALUES (1), (2), (3), (4), (5))...
May 26, 2016 at 9:19 am
Something like this?
WITH Numbers AS (
SELECT n
FROM (VALUES (1), (2), (3), (4), (5)) x(n)
)
SELECT n
FROM Numbers n
JOIN T1 s
ON n >= Serial_Number
AND n <= End_Serial_Number
WHERE Serial_Number = 1
John
May 26, 2016 at 9:00 am
If you run a trace to capture failed logins, you'll get all sorts of extra information, such as the name of the application that's trying to connect (if the application...
May 26, 2016 at 8:21 am
DesNorton (5/26/2016)
Depending on your business rules .....If you do fire on UPDATE, you may need to confirm whether NICKNAME has been edited before, and then not change it.
drew.allen (5/26/2016)
May 26, 2016 at 7:41 am
You don't need table1 at all, do you, since everything is contained in table2? You didn't specify expected results, but here's a guess:
WITH Lengths AS (
SELECT
code
,code_name
,ROW_NUMBER() OVER (PARTITION BY...
May 26, 2016 at 7:26 am
DesNorton (5/25/2016)
Create a standard column [NICKNAME]
Create an INSERT trigger that sets [NICKNAME] = [LASTNAME] + ' ' + [FIRSTNAME]
Then the column is available...
May 26, 2016 at 7:09 am
Sergiy (5/26/2016)
Source may be not even needed, if it's a clustered index.
Yes, that's true. You only want the actual key columns.
John
May 26, 2016 at 5:25 am
Viewing 15 posts - 2,581 through 2,595 (of 7,191 total)