Viewing 15 posts - 1,201 through 1,215 (of 13,445 total)
mw112009 (3/11/2016)
I was just playing with the SQl and ran the following
exec sp_MSforeachdb 'SELECT top 1 ''?'' As DatabaseName FROM [?].sys.tables '
However it only listed about...
March 11, 2016 at 12:39 pm
this will work:
if the database name shows up, it has a table with that name:
exec sp_MSforeachdb 'SELECT ''?'' As DatabaseName FROM [?].sys.tables WHERE name = ''ClmRejRept'' '
March 11, 2016 at 11:41 am
Previous place i worked at had a code base like that, created by an offshore team.
There was only a project manager, and no onsite developer reviewing the code produced, so...
March 11, 2016 at 11:14 am
I never had to do this, but i found this interesting!
i found a good article on SQLTips called "Transferring data from SAS to SQL Server and back":
https://www.mssqltips.com/sqlservertip/2659/transferring-data-from-sas-to-sql-server-and-back/
so if you don't...
March 11, 2016 at 5:41 am
a calculated column cannot have an if statement; you canuse a CASE though
something like this is what i think you wnat:
SET QUOTED_IDENTIFIER ON
ALTER TABLE Schedule ADD
[SubmitDate] AS
CASE
WHEN REVIEWDueStatus=10 AND...
March 10, 2016 at 12:21 pm
I think it's a going to take a good rewrite and step back from trying to modify the existing, and just join these three tables together, and trim off any...
March 10, 2016 at 6:08 am
i'm pretty sure that all third party dlls have to be registered in the Global Assembly Cache(GAC) as it's not enough to just have the dll's in the folder, when...
March 9, 2016 at 9:55 am
there's nothing in your procedure that requires a cursor, let alone a cursor/while/cursor triumvirate of looping constructs.
In the end, you populate a #Results table, and return the results.
while the rewrite...
March 9, 2016 at 8:00 am
i've done something similar, but i just add the items together, and test for greater than zero; my query is assuming cost is a positive value, never negative, is that...
March 8, 2016 at 3:27 pm
szejiekoh (3/7/2016)
Lowell (3/7/2016)
that service keeps track of what port SQL is running on, and forwards...
March 8, 2016 at 5:27 am
i am definitely under the impression that procedures/functions/packages have to be hand edited, as there's no specific set of rules to convert them;
the migration assistant is fine for tables and...
March 8, 2016 at 5:22 am
i think State 16 means the default database assigned to the login does not exist. it might have been dropped or renamed.
change the default database of the login in question...
March 7, 2016 at 11:07 am
The SQL Browser service has to be running on the server in order to do that;
that service keeps track of what port SQL is running on, and forwards requests to...
March 7, 2016 at 11:00 am
here's one way to do it:
DECLARE @xml XML ='<Item>
<Item customerid="101" customername="Ram" gender="Male" married="Y"/>
<Item customerid="102" customername="Sham" gender="Male" married="Y"/>
<Item customerid="103" customername="Tom" gender="Male" married="N"/>
</Item>'
select
...
March 7, 2016 at 6:51 am
Thanks mister magoo! what tool did you use that helps you identify case sensitivity issues like that?
March 7, 2016 at 6:30 am
Viewing 15 posts - 1,201 through 1,215 (of 13,445 total)