Viewing 15 posts - 1 through 15 (of 30 total)
The data is stored in an image column as a varchar string (not my design, not something I can change).
I pull it out, converting it to varchar, into a varchar...
March 19, 2015 at 1:43 pm
Thanks. That (and some googling) showed me something very useful for future reference.
Unfortunately, that function didn't help in this instance, as it only made things far worse (since it...
March 18, 2015 at 2:58 pm
What is "Tally.N" in that function?
March 18, 2015 at 2:14 pm
I use this one-off script for similar things... not as formalized as Lowell's stored proc, but I just pull this up in SQL Server Management Studio, edit it to specify...
October 14, 2011 at 10:53 am
jared-709193 (10/4/2011)
Attach/restore the file...
October 6, 2011 at 4:12 pm
I've assumed this schema:
CREATE TABLE computers_deviceprocessors (id int PRIMARY KEY, computer_id int, deviceprocessor_id int)
CREATE TABLE deviceprocessors(id int PRIMARY KEY, number_deployed int)
...and this sample data:
INSERT INTO computers_deviceprocessors (id, computer_id, deviceprocessor_id)
VALUES (1,...
October 6, 2011 at 10:59 am
You can very easily generate SQL to do the updates, to save you a lot of typing. You can whip up something like this very quickly:
SELECT 'UPDATE [Name] SET...
October 5, 2011 at 10:10 am
george sibbald (10/4/2011)
If I try and do this with a SQL account that does not have sysadmin rights I...
October 4, 2011 at 3:43 pm
I don't know if this will help, but this is the script I coded to shrink stubborn log files... this can recover a lot of space:
DECLARE @file sysname
SELECT @file=[name] FROM...
October 4, 2011 at 3:34 pm
In addition to above... if you're not on the same sever as the script, you'd need to use the \\machine-name\share notation. For example, to make c:\Data\data.txt available to...
October 4, 2011 at 3:22 pm
No, it's all case-insensitive. It's an older database. It just struck me as really weird that no matter what I did, I kept getting the error. Go...
October 4, 2011 at 2:01 pm
jared-709193 (10/4/2011)
Attach/restore the file...
October 4, 2011 at 1:54 pm
jared-709193 (10/4/2011)
October 4, 2011 at 1:45 pm
No dice.
The "restore" process mucks with the NTFS security descripter just like the CREATE DATABASE FOR ATTACH does.
Got a great script working to restore from backup, and once the DB...
October 4, 2011 at 12:26 pm
When I USE the database, and try to run the stored procedure, I get this:
Could not find stored procedure 'sp_AddRoleMember'.
If I open...
October 4, 2011 at 9:18 am
Viewing 15 posts - 1 through 15 (of 30 total)