Viewing 15 posts - 1,711 through 1,725 (of 7,187 total)
Phil is right - it would be a lot easier you you could change to a normalised table design. If you're stuck with what you have, though, you can do...
March 7, 2017 at 3:07 am
March 7, 2017 at 2:52 am
Cast as something like decimal(7,2). Don't take my word for that, though - make sure you read and understand the documentation about the decimal data type.
John
March 7, 2017 at 2:49 am
There are scripts out there that will help you with stuff like this. Search for something like "query for tables in dependency order".
John
March 6, 2017 at 9:39 am
ExhibitA - Monday, March 6, 2017 8:21 AMAll I want to do is insert everything from my view into my table.
March 6, 2017 at 9:36 am
Yes, it's very confusing! How does that stored procedure get invoked? It won't just run by magic when something changes, And don't forget - it's not the view that changes,...
March 6, 2017 at 8:14 am
Do you have any control over the structure of the ssf_widget_history table? If so, why not just put an identity property on the checkpoint_id column, and let the table do...
March 6, 2017 at 7:55 am
Stephen
The only other thing I would say is that you need to explain to whoever owns the server that if they want you to manage it, you need...
March 6, 2017 at 3:54 am
UPDATE Timesheets
SET Timesheet_Number = STUFF(Timesheet_number,1,4,'HPCD')
WHERE Timesheet_Number LIKE 'EPCB%'
Make sure you understand what the STUFF function does before you use this in production. You're the one...
March 6, 2017 at 3:32 am
Stephen
Yes, the advice from the previous DBA is good. What I would do is speak to users to find our excatly what they're doing when the application is...
March 6, 2017 at 3:25 am
Also, syscomments.text is confined to 4000 characters, so large stored procedures and functions will get cut off. If the database name reference is past character 4000, you’re out...
March 6, 2017 at 3:14 am
We don't really have arrays in SQL Server. I think your choices are to declare individual scalar variables (@ReplaceThis1, @ReplaceWith1, @ReplaceThis2, @ReplaceWith2, ...) but that also suffers from having to...
March 6, 2017 at 3:08 am
You could change your UPDATE statement so that you have lots of nested REPLACEs. The drawback with that is that you'll need to change the code if you need to...
March 6, 2017 at 2:51 am
I would recommend that you change your code so that it...
March 3, 2017 at 9:08 am
I think in the next version, there might be, but for now you'll need to find some way around it. Do you not have SSMS?
John
March 3, 2017 at 8:22 am
Viewing 15 posts - 1,711 through 1,725 (of 7,187 total)