Viewing 15 posts - 16 through 30 (of 52 total)
Your backup, to a table in same database, is it for migration/upgrade purposes?
(If so, maybe set database to single user mode, first.)
Otherwise is it possible to use the builtin database...
November 26, 2019 at 8:19 pm
The problem is the FUNCAveMile(), that is need to be run for every row in table. What does it do?
November 26, 2019 at 7:43 pm
I have used Poor Man's T-SQL Formatter, in different editors, works nicely. Now I mostly use SQL Prompt, from Toolbelt in SSMS. The SQL Prompt Core, is...
June 13, 2019 at 9:02 am
the query runs for about 15 min and gives results.
And you expect 900k rows, that's gonna take a while, so you probably get a network timeout.
You could also minimize the...
May 28, 2019 at 8:02 am
At this point, I need to know how can I get SQL to recognize my current computer name (current db owner)?
The current user is:
select CurrentUser = suser_sname();
It...
May 28, 2019 at 7:22 am
How can I determine the name of the owner of the database?
select [Database] = [name], [Owner] = suser_sname(owner_sid)
from sys.databases;
Should list the databases and owners.
May 27, 2019 at 9:48 am
What is the owner of the database. There if often problem with owner and the scripts for creating the structure for diagrams. Diagrams works fine, and even if the are...
May 23, 2019 at 10:18 am
Most databases benefits to be normalized to the 3NF. Take a look of sites describing different sql normalization rules.
May 23, 2019 at 9:57 am
I'm using it to hold values obtained from the field Column, which is only 10 characters in length.
You probably what a table type holding your strings of length 10, that's...
May 23, 2019 at 6:55 am
There are some tools to create ER diagram automatically. For large databases, you probably want to use several ER diagrams.
In SSMS, you can use the diagram functionality to manually...
April 10, 2019 at 11:32 am
March 17, 2019 at 10:50 am
All SSN handling/validation should be done in code, before sent to the database. Is it only one type of SSN? Else OID is needed, to define type of...
March 16, 2019 at 12:12 pm
You may want to use convertselect convert(varchar(19), getdate(), 120) as [getdateoutput];
March 12, 2019 at 1:47 am
Look at insert (XML DML), there is some samples that may fit your needs.
March 8, 2019 at 1:57 am
The result is correct, use the str function, like:select str(cast(@p1 as numeric(12, 2)) / cast(@p2 as numeric(12, 2)), 12, 2);
March 7, 2019 at 11:54 pm
Viewing 15 posts - 16 through 30 (of 52 total)