Viewing 15 posts - 9,286 through 9,300 (of 10,144 total)
Hi Simon
It's a long shot, but could it be case sensitivity? Try 'ortussearch' in your sp_MSforeachdb query.
Cheers
ChrisM
December 4, 2008 at 8:43 am
richard (12/4/2008)
That works - thanks Chris......so it was just doubling up the quotes basically?
Cool, well done.
There were a couple of changes to make between the original and the final,...
December 4, 2008 at 5:35 am
This works for me...just a couple of small changes
ALTER PROCEDURE dbo.Sun5_OFAC_Export
@bus_unit varchar(3)
AS
Declare @sql varchar(2000)
--build the SQL statement
SET @sql =
'SELECT '''...
December 4, 2008 at 5:08 am
Richard, can you post the result of the print statement please?
December 4, 2008 at 4:55 am
Hi Richard
The statement is longer than NVARCHAR(1000), so increase the value:
DECLARE @sql NVARCHAR(2000) should be more than enough.
December 4, 2008 at 4:44 am
bhushanhegde (12/3/2008)
I want check a perticular table is blank or having any rows? is it possible with using exist keyword? itried with isnull. but it is not working.
select isnull(empid,0) from...
December 4, 2008 at 4:34 am
Hi Richard
Give this a try. When you've got it working, then's the time to put it into a stored procedure. Notice the PRINT statement? Take the output from this, paste...
December 4, 2008 at 3:45 am
Hi Ankur
Please have a quick read of the link at the bottom of my post. We need a larger data set as test data, posted as a script to create...
December 4, 2008 at 2:09 am
Skull Killer (12/3/2008)
U can also create a var @ActionTable TABLE(id INT IDENTITY(1,1),Action VARCHAR(20))
insert the possible actions into this table
INSERT INTO @ActionTable (id,Action)
SELECT 'NEW'
UNION ALL
SELECT 'DELETE'
UNION ALL
...
or better...
December 4, 2008 at 12:41 am
If you have to do it this way, then something like this should suffice:
[font="Courier New"]-- Make some sample data
DROP TABLE #TablefieldPositionLength
CREATE TABLE #TablefieldPositionLength ([field name] VARCHAR(30), startingposition INT, fieldlength INT)
INSERT...
December 3, 2008 at 9:49 am
Hi Adam
If you run this code snippet, it will return dupe pairs. How would you identify which of each dupe pair to delete?
SELECT *
FROM vFRDonation a
INNER JOIN (SELECT OriginalTransNumber
FROM vFRDonation
WHERE...
December 3, 2008 at 8:56 am
Top work, Jeff. You have a rare talent for mixing informal narrative with a technically challenging subject - and with ruthless precision 😎
Cheers
ChrisM
December 3, 2008 at 8:41 am
GilaMonster (12/3/2008)
Correct me if I'm wrong, but hasn't this been asked and answered twice before? (exact same insert statement)http://www.sqlservercentral.com/Forums/FindPost610162.aspx
http://www.sqlservercentral.com/Forums/Topic610173-1291-1.aspx
Yep, thanks for the confirmation, Gail. I'm outta here.
December 3, 2008 at 5:11 am
Heh - no worries. Can you please run the following two statements and post the values they return?
SELECT MAX(LEN(RTRIM(i.Client))) AS Client_LEN,
MAX(LEN(RTRIM(i.CountryCode))) AS CountryCode_LEN,
MAX(LEN(RTRIM(i.ClientID))) AS ClientID_LEN
FROM dbo.vwImportAllNewClientIDs i
SELECT...
December 3, 2008 at 5:02 am
Hello
I've taken the liberty of simplifying/reformatting your code to make it a little more readable:[font="Courier New"]INSERT INTO dbo.tblDeals(Client,Bought_Sold,RIC,
Trade_Date, Price, Counterparty_Code,
Dealer, Commission, Consideration,
Quantity, Currency, SEDOL, Participant_ID,
FIDESSA_Ref, FX_Rate,...
December 3, 2008 at 4:44 am
Viewing 15 posts - 9,286 through 9,300 (of 10,144 total)