Viewing 15 posts - 1,486 through 1,500 (of 2,452 total)
maybe this article by Phil Factor will provide some ideas for you....
interesting read anyway.
https://www.simple-talk.com/sql/t-sql-programming/searching-for-strings-in-sql-server-databases-/
April 20, 2014 at 5:58 am
I posted some code in this thread a while back
http://www.sqlservercentral.com/Forums/Topic1544629-146-1.aspx
http://www.sqlservercentral.com/Forums/FindPost1558835.aspx
this may be what you are looking for....but please read the comments from Jeff Moden after my post.
April 20, 2014 at 4:17 am
I think that you may have oversimplified your real data....??
do you know in advance the maximum number of items that are allowed?
anyways here is some code that does what you...
April 20, 2014 at 4:00 am
the following excellent articles by Jeff Moden may help you on your way
http://www.sqlservercentral.com/articles/T-SQL/63681/
http://www.sqlservercentral.com/articles/Crosstab/65048/
as a sidebar...I would start using datetime for your month names....you are likely to get into all sorts...
April 20, 2014 at 2:51 am
maybe food for thought....
the random data is a bit simplistic...but relatively large.
not sure if this meets your requirements.
/*set up some simple test data*/
use tempdb
go
If exists(select * from information_schema.TABLES where TABLE_NAME...
April 19, 2014 at 9:20 am
[p](Code is used for more than 60 or 70 tables in three different databases).
[/p]
out of curiosity....whats the reasoning behind this proc?
April 19, 2014 at 8:07 am
redcn2004 (4/19/2014)
search rule is: when c0=1 and a0=b0 then print.
the last result is:
'00','01','02','00','00','00',1,0,0 --C0=1 A0=B0
not sure I completely understand....for the first search rule if I run
SELECT ...
April 19, 2014 at 3:24 am
jeichelber (4/18/2014)
That is why I was going to bail.
I spoke with a gentleman that is...
April 18, 2014 at 3:36 pm
jeichelber (4/18/2014)
It looks like I will have to hobble along with overly complicated PROGRESS queries until the company decides to upgrade our systems.
They promise that it...
April 18, 2014 at 2:46 pm
as a sidebar.....is there a reason why you cannot get a solution to you problem from your NAV reseller?
April 18, 2014 at 1:48 pm
using your setup script
SET NOCOUNT ON
CREATE TABLE SampleOrders (
[SalesOrderNumber] NVARCHAR(20),
[VersionNumber] NVARCHAR(10),
[ItemNumber] NVARCHAR(20),
[OrderDate] DATETIME,
[RequestedDeliveryDate] DATETIME,
[LeadTimeReqDeliveryDate] INT,
[PromisedDeliveryDate] DATETIME,
[LeadTimePromisedDeliveryDate] INT,
[QuantityOrdered] DECIMAL(38, 18),
[PostingDate] DATETIME,
[ShippingTime] INT,
[ActualDeliveryDate] DATETIME,
[LeadTimeActualDeliveryDate] INT,
[ShippedQuantity] DECIMAL(38, 18)
)
INSERT INTO SampleOrders (
[SalesOrderNumber],
[VersionNumber],
[ItemNumber],
[OrderDate],
[RequestedDeliveryDate],
[LeadTimeReqDeliveryDate],
[PromisedDeliveryDate],
[LeadTimePromisedDeliveryDate],
[QuantityOrdered],
[PostingDate],
[ShippingTime],
[ActualDeliveryDate],
[LeadTimeActualDeliveryDate],
[ShippedQuantity]
)
VALUES (
'S19856',
1,
'10568',
'2014-02-13 00:00:00.000',
'2014-03-14...
April 18, 2014 at 1:38 pm
itortu (4/18/2014)
April 18, 2014 at 12:22 pm
itortu (4/18/2014)
When...
April 18, 2014 at 12:07 pm
jeichelber (4/18/2014)
This feels like it is probably a noob question, but I don't know exactly where to post. (If this question is more appropriate in another forum, please let...
April 18, 2014 at 11:01 am
Louis Hillebrand (4/18/2014)
Just a hint: Min quantity = 1,...
April 18, 2014 at 10:31 am
Viewing 15 posts - 1,486 through 1,500 (of 2,452 total)