Viewing 15 posts - 16 through 30 (of 83 total)
Probably - if you're curious as to how it generates the script, run a Profiler session against your spid when you script object(s) out.
MJM
October 8, 2009 at 1:28 pm
Here's a simple example that will render the result you want. Please note that this will only answer whether an A-Z character exists in the string (does not do...
October 8, 2009 at 1:20 pm
Bob Hovious 24601 (10/8/2009)
Mark, it's time you learned about tally tables for parsing and save a few cpu cycles. 🙂
Meh, I like to do it MY way though and...
October 8, 2009 at 10:39 am
Take a look at the following topics on BOL or search here at SSC in the archives:
1. Log Shipping
2. Replication
3. Database Mirroring (SQL Server Enterprise, 2005+)
I am...
October 8, 2009 at 10:12 am
I would use the following in a stored procedure:
--Use array as a stored procedure argument
DECLARE @Array VARCHAR(MAX)
SET @Array = 'val1|val2|val3|val4|val5|FOO|BAR'
SET NOCOUNT ON
DECLARE
@Delimiter CHAR(1),
@CharPos INTEGER,
@ArrayValue VARCHAR(255)
SET @Delimiter = '|'
SET @CharPos =...
October 8, 2009 at 10:05 am
smthembu (10/8/2009)
Hi AllI need to check across my DB's which logins have blank passwords
Thx
In addition to these great suggestions, you can always write a brute force sqlcmd script to check...
October 8, 2009 at 9:55 am
One way of doing it (without issuing an error from the RDBMS), would be to do something like this:
IF NOT EXISTS(SELECT 'X' FROM dbo.childtable t1 WHERE t1.fk_reference = 'Value you...
October 8, 2009 at 9:51 am
Jeff Moden (10/7/2009)
WHERE...
October 8, 2009 at 8:14 am
No, there is not a database-wide or server wide setting for that. That's like asking for
ALTER DATABASE mydb SET REJECT_DATA_I_THINK_IS_MEANINGLESS ON
😉
I wasn't thinking earlier when I looked at your...
October 7, 2009 at 1:46 pm
Like Lutz said, here it is in code:
DECLARE
@Test2Col VARCHAR(MAX)
SET @Test2Col = NULL
IF LEN(LTRIM(RTRIM(ISNULL(@Test2Col, '')))) <= 0
BEGIN
RAISERROR('Invalid value for this column.', 16, 1)
END
ELSE
BEGIN
--Do INSERT
SELECT 'INSERTING ''' +...
October 7, 2009 at 1:05 pm
toparsi (10/7/2009)
I did not mean was inserting null,,, but if you see nothing in the column , is it not similar to inserting unknown value. I...
October 7, 2009 at 12:40 pm
middletree (10/6/2009)
RiccaDB connection string: Data Source=xxxx;Initial Catalog=ricca;Integrated Security=TrueChempax connection string: DSN=ChempaxLive;UID=xxxx;PWD=xxxx
Can you try to run the following using ONLY the SQL connection? This will at least make sure you...
October 6, 2009 at 3:02 pm
Can your conn string be anonymized and posted?
If not, I would recommend what Melton said above and start a Profiler trace to see the duration of the query that fails....
October 6, 2009 at 2:38 pm
middletree (10/6/2009)
I am not sure, but I don't think it will matter, because this thing is failing on the SQL server connection.
How are you connecting to the SQL Server then?...
October 6, 2009 at 2:16 pm
Is there a Timout/Connection Timout property you can set for the Progress DB connection?
October 6, 2009 at 2:11 pm
Viewing 15 posts - 16 through 30 (of 83 total)