Viewing 15 posts - 8,341 through 8,355 (of 26,490 total)
patrick.palmer (3/25/2013)
March 25, 2013 at 7:24 am
A bit expensive, but the following works:
declare @string varchar (100)
set @string = 'x:\folder1\folder2\folder3\test.txt'
select @string
select @string,reverse(right(reverse(@string), len(@string) - charindex('\',reverse(@string),1) + 1));
March 25, 2013 at 12:40 am
I'm thinking this would work on SQL Server 2000 when you could update system tables.
March 23, 2013 at 6:03 pm
Without seeing the table structure, data, the different calculations that would be completed and what the data would look like when process was completed (the expected results), it is really...
March 23, 2013 at 12:42 am
I would look at using a check constraint instead of a trigger. Even if you implement the check in the UI, it should be in the database as well...
March 23, 2013 at 12:33 am
mishaluba (3/22/2013)
Thank you for your reply! The query you listed will return all of the cars and their parts, but this is not what I am after. My...
March 22, 2013 at 1:08 pm
The way I would start, is do the first one manually creating the scripts as I went along using SSMS. Then it is just a matter of automating those...
March 22, 2013 at 1:05 pm
javib (3/22/2013)
March 22, 2013 at 11:34 am
I don't see a need for a recursive query:
IF OBJECT_ID('Car') IS NOT NULL DROP TABLE Car;
CREATE TABLE Car (
CarID INT,
CarName VARCHAR(16)
);
IF OBJECT_ID('CarPart') IS NOT NULL DROP TABLE CarPart;
CREATE TABLE CarPart...
March 22, 2013 at 11:29 am
SQLCrazyCertified (3/22/2013)
Steve Jones - SSC Editor (3/22/2013)
In terms of roles,...
March 22, 2013 at 11:19 am
Try this:
select
a.code,
a.price,
new_field = a.price * b.percent * case when a.check = 1 then 8 else 1 end
from
...
March 22, 2013 at 11:12 am
Please, do not cross post, duplicate post. Please post all replies here.
March 22, 2013 at 11:08 am
davdam8 (3/22/2013)
this is really helpfull.
However all the specification you gave are very terrifying, i'm only a rookie.
The work i'm in now requires the separation of the data into levels,...
March 22, 2013 at 11:01 am
javib (3/22/2013)
To get the information I need, I tried joining the table on itself but that brings back many...
March 22, 2013 at 10:27 am
Viewing 15 posts - 8,341 through 8,355 (of 26,490 total)