Viewing 15 posts - 616 through 630 (of 1,409 total)
A bit shorter code (but doing the same as Gail's solution):
UPDATE [Test]
SET [Name]= COALESCE(@Name, [Name]),
[Designation]= COALESCE(@Designation, Designation),
[City]= COALESCE(@City, City)
WHERE EmpID= @EmployeeID;
Explanation:...
November 18, 2013 at 4:29 am
Take a look in the script repository http://www.sqlservercentral.com/Scripts/. You can find many scripts to get information about permissions. One of them will most certanly fit your needs.
November 18, 2013 at 4:15 am
How are you currently passing the value from the GENERATE to the SHOW stored procedure?
If possible post the code of both procedures, so we can analyze your problem and provide...
November 18, 2013 at 4:12 am
From your description it is very hard to tell what the problem could be.
I suspect one of the queries within the BCP process occasionally won't return data (no rows present...
November 13, 2013 at 6:23 am
It looks like your script is being cut-off. The compplete word in your error message should be "ERROR_REASON" instead of "ERROR_REASO".
I think you should split the complete script file into...
November 12, 2013 at 4:07 am
I haven't tested this with your ssample data, but I think this will give you the result:
SELECT
[VendorNum]
, [VendorName]
, YEAR([PostingDate]) as 'Year'
, Sum([Amount]) as 'TotalSum'
FROM [tempVendorPurchases]
GROUP BY
[VendorNum]
, [VendorName]
, YEAR([PostingDate])
November 9, 2013 at 2:07 pm
If the results change when you uncomment the [MerchState] field, that means the current GROUP BY overlaps multiple values in the [MerchState] field. The main question is: which of these...
November 9, 2013 at 2:01 pm
sreenubabu.s (11/5/2013)
we are planning Side by Side Migration only in the Production.
would it work ?...
November 5, 2013 at 6:37 am
I'm sorry, this goes a little beyond my current knowledge. Because your current issue is regarding the file folders, I suggest you post this problem on a VB-script / VBA...
November 4, 2013 at 12:48 pm
Yesterday I was finally able to create a test case of my own. The code I provided in the previous post is tested by me.
Initially I just used the code...
November 3, 2013 at 1:25 pm
The code below will give you a working example. It will loop through all files within the given folder. When the file is of a type: "Microsoft Access Database" then...
November 2, 2013 at 12:14 pm
Take a look at this site: http://allenbrowne.com/func-ado.html. You can use the sample to query the database for a list of tables. Hopefully this will give you an error when executing...
October 31, 2013 at 7:57 am
Unfortunate I'm currently not able to setup or test this myself. I can only give you some pointers...
So you say you don't get an error with the "objConnection.Open strConnection" command...
October 30, 2013 at 4:09 pm
If the previous doesn't work I'll have to guess some follow up steps.
What happens if you supply a dummy password? Will this generate an error or will it still pop-up...
October 29, 2013 at 2:09 pm
You mentioned you can't create the database user and give permissions from the LOGIN (ssms: instance - security - logins - properties existing login). But are you able to create...
October 25, 2013 at 6:44 am
Viewing 15 posts - 616 through 630 (of 1,409 total)