Viewing 9 posts - 1 through 9 (of 9 total)
Hi All,
Thanks for your valuable inputs. I'm working on this and will update here as soon get any result.
This forum i rocking 🙂
October 5, 2010 at 11:10 am
SP as follows:
CREATE PROCEDURE spGetVendor
@CountryId INT,
@CityId NVARCHAR(50)
AS
SET NOCOUNT ON;
SELECT VendorId From Vendors
WHERE CountryId = @CountryId +...
October 4, 2010 at 4:38 pm
CREATE PROCEDURE spGetVendors
@CountryId INT,
@CityId NVARCHAR(50)
AS
SET NOCOUNT ON;
SELECT VendorId From Vendors
WHERE CountryId = @CountryId + ' '...
October 4, 2010 at 4:20 pm
Hi All,
Thanks for your valuable inputs. Is following query is doable??
DECLARE @CountryId INT
DECLARE @CityId NVARCHAR(50)
SET @CountryId = 2
SET @CityId = ' AND CityId IN (23,45,85,86)'
SELECT VendorId From Vendors
WHERE CountryId...
October 4, 2010 at 4:05 pm
This way working but i need to execute the select statement directly i.e, without storing it in variable @strQuery then execution. I need to execute as follows:
BEGIN
DECLARE @strQuery NVARCHAR(MAX)
DECLARE @CountryId...
October 4, 2010 at 3:59 pm
Hi,
Thanks for your quick reply. Actually i declared that as varchar. Mistyped in the question as INT.
Any changes needed?
October 4, 2010 at 3:45 pm
DTS is supporting multiple databases.
I am very weak in stored procedure. So added the query snippets in post.
Can you please write me stored procedure.
November 26, 2008 at 5:03 am
Viewing 9 posts - 1 through 9 (of 9 total)