Viewing 15 posts - 14,791 through 14,805 (of 15,381 total)
db2mo (4/21/2011)
April 21, 2011 at 11:30 am
Or do what Sean mentioned above that he posted between me opening this and finally posting. 🙂
If I could count how many times I have done that myself...
April 20, 2011 at 2:54 pm
Just to be silly I tweaked Dan's a little bit.
select t.fristname,t.lastname,t.Check_date,t.Checkno,t.Amount
from
(
select fristname,lastname,Check_date,Checkno,Amount,
ROW_NUMBER() OVER(PARTITION...
April 20, 2011 at 2:51 pm
One of those fields must not be a character type field so you will have to cast it.
cast(QO01HIGHWAY_CLASS as (n)varchar(whatever length is appropriate here)) + cast(QO01ACCIDENT_LOCATION_HWY as (n)varchar(appropriate length))AS...
April 20, 2011 at 2:28 pm
It is unclear what you want. You posted the details of the data you want from this table but...that data does not exist in the sample data. Maybe if you...
April 20, 2011 at 7:53 am
Login as that user and try to do some inserts and selects on objects that belong to that schema. You can do that directly in SSMS easily enough.
April 20, 2011 at 7:30 am
Please don't keep posting the same question over and over. It fragments the responses and makes it harder for everyone.
See the original thread here
April 19, 2011 at 9:08 am
Happy to help. I don't think you any other alternative because that column contains multiple datatypes. You could also try using each of those queries as an insert to a...
April 19, 2011 at 8:46 am
enzotoc (4/19/2011)
but i have a good reason for open a link directly from t-sql query
Here the scenario
I have a query that lists the bugs...
April 19, 2011 at 8:36 am
Best guess is you will have to do 3 queries and union them.
something like this
SELECT a.ID,c.Dt_ID
FROM dbo.A a
INNER JOIN dbo.B b ON a.ID=b.ID
INNER JOIN dbo.C c ON b.ID=c.ID AND c.ID=a.ID
WHERE...
April 19, 2011 at 8:18 am
WHERE
(c.Dt_ID=1 AND ISNULL(CONVERT(FLOAT,Replace(a.VALUE, ',', '')),0)=ISNULL(b.Number,0)) OR
(c.Dt_ID=2 AND ISNULL(CONVERT(DATETIME,a.VALUE),GETDATE())=ISNULL(b.[Date],GETDATE())) OR
(c.Dt_ID=3 AND ISNULL(CONVERT(VARCHAR(MAX),a.VALUE),0)=ISNULL(b.[Char],0))
Unless your data is incredibly specific this will never work. You are only going to allow values in this field...
April 18, 2011 at 2:23 pm
If you don't know the mime type it can still work as long as you know the extension. If it is just a binary and you don't know either the...
April 15, 2011 at 2:10 pm
That is the way temp tables are designed to work. They are only visible to the connection that creates them. If you need to see a temp table from another...
April 15, 2011 at 1:32 pm
Dan.Humphries (4/14/2011)
Add this to your where clause and this should take care of it.
AND DATEPART(hh,C.ROWUPDATE)=>20 AND DATEPART(hh,C.ROWUPDATE)=<6
Not quite gonna get you there. There are no hours that are >= 20...
April 14, 2011 at 12:23 pm
Viewing 15 posts - 14,791 through 14,805 (of 15,381 total)