Viewing 15 posts - 1,456 through 1,470 (of 13,447 total)
there was a recent article that demonstrated how to run all *.sql files in a given folder.
that means the scripts contain commands that already have to have the parameters to...
September 25, 2015 at 5:57 am
maybe join only on names,and filter for where the ENum <> Anum?
SELECT distinct T1.[last name],t1.[first name],ENum,t2.Anum,T2.lname ,t2.Fname,
FROM ECLINICIAN_Info T1
LEFT JOIN ACLINICIAN_Info T2
ON t1.[last name] = t2.lname
and t1.[first name]...
September 24, 2015 at 10:52 am
well if it doesn't exist, then you'd be adding a column of all null values right?
you can join the two tables together instead of an exists, but that finds things...
September 24, 2015 at 10:41 am
and here's a basic example for the command line:
sqlcmd -S . -d master -E -Q "exec sp_who"
September 24, 2015 at 10:34 am
sqlcmd or bcp are the two command line options.
bcp is designed for importing or exporting data, whereas sqlcmd can do both, but also execute commands;
i've used use sqlcmd to...
September 24, 2015 at 6:56 am
I've got a script i call missing and implied foreign keys that i built over the years.
it's basically a peel the onion kind of attack, which kind of assumes some...
September 23, 2015 at 5:38 am
because you said intellectual property, i'm thinking that your database is given to your clients, and a different DBA than yourself administers that database. if you control the db, you'd...
September 22, 2015 at 1:58 pm
--whopps removing and moving to other post.
September 22, 2015 at 1:57 pm
Laptop...Thumbdrive...Golf Cart...32bit...workaround...Free..."connections are only open for a second or two to retrieve a row or write a row"
a few of the keywords i'm picking up here directly telling towards the...
September 22, 2015 at 1:41 pm
this is because you have a correlated subquery, mostly due to bad aliasing. it's not a bug, but a behavior that occurs when you don't code correctly. properly aliasing columns...
September 22, 2015 at 12:44 pm
whoops i menat by hour and not description... changed above.
ORDER BY cte.StartDateTime,r.hour_number
September 22, 2015 at 5:32 am
if you were gettign help in another thread, you probably should have continued in that thread, instead of a new post.
looks like this would work to me:
ORDER BY cte.StartDateTime,r.hour_number
September 22, 2015 at 5:23 am
you must have an explicit ORDER BY in your query to guarantee the data appears in a specific order. you stated you have no order by, so that is the...
September 22, 2015 at 5:17 am
Rod at work (9/21/2015)
September 21, 2015 at 2:38 pm
you are correct, only the table would be renamed.
you can rename each of the constraints, separately, one at a time, if you wanted with sp_rename, which you had already identified.
September 21, 2015 at 2:24 pm
Viewing 15 posts - 1,456 through 1,470 (of 13,447 total)