This is my first real upsizing attempt. I foolishly stuck with Jet so I could get things going faster without learning all the ins and outs of ADP's. Catch 22 is I ran across a reporting problem and thought, a Transact-SQL Full join would solve this problem (no, I'm not kidding and I hate this project).
I don't have any real SQL server programming experience but I read a Transact-SQL book for version 7.0 (cringe, running 2000).
It seems most of my errors stem from Jet Functions and one custom function. Specifically I have a bomb on a format function used to format and convert a date (or mask it) and a custom function.
First the custom function used in the Jet query...
Function NotToExceed(dblValue, dblNotToExceed) As Double
If dblValue > dblNotToExceed Then
NotToExceed = dblNotToExceed
Else
NotToExceed = dblValue
End If
End Function
How embarrasing, no error handling.
I'm hoping that there is a similar SQL Server Function and I can just fix the VBA and queries to use the same name and hence fixing the conversion problem. Otherwise, I'm thinking create a database, create an appropriate stored procedure and then upsize. Any thoughts, criticism, boots to the head or create procedure examples are welcome here.
I am also using the Jet format function to control dates and below is an example although it shows another error...
Server Error 156: Incorrect syntax near the keyword 'Index'.
CREATE PROCEDURE "qry Update DealVolume RatePeriod"
AS
UPDATE DealVolume SET DealVolume.RatePeriod = convert(datetime,format(DealVolume.VolDate,Index.FormatStringMask))
FROM
WHERE
I'm playing games where I convert an extra field value to a date format appropriate to the pricing index... I.e. m/1/yyyy because everthing in August for a particular Pricing Index.
Is there a quick fix to the keyword problem for upsizing or do I get to rename the table <dolt>?
I hope this is enough detail because the back-up tape is crying for storage and I've got to get out of here for a change.
I don't have any real SQL server programming experience but I read a Transact-SQL book for version 7.0 (cringe, running 2000).
It seems most of my errors stem from Jet Functions and one custom function. Specifically I have a bomb on a format function used to format and convert a date (or mask it) and a custom function.
First the custom function used in the Jet query...
Function NotToExceed(dblValue, dblNotToExceed) As Double
If dblValue > dblNotToExceed Then
NotToExceed = dblNotToExceed
Else
NotToExceed = dblValue
End If
End Function
How embarrasing, no error handling.
I'm hoping that there is a similar SQL Server Function and I can just fix the VBA and queries to use the same name and hence fixing the conversion problem. Otherwise, I'm thinking create a database, create an appropriate stored procedure and then upsize. Any thoughts, criticism, boots to the head or create procedure examples are welcome here.
I am also using the Jet format function to control dates and below is an example although it shows another error...
Server Error 156: Incorrect syntax near the keyword 'Index'.
CREATE PROCEDURE "qry Update DealVolume RatePeriod"
AS
UPDATE DealVolume SET DealVolume.RatePeriod = convert(datetime,format(DealVolume.VolDate,Index.FormatStringMask))
FROM
WHERE
I'm playing games where I convert an extra field value to a date format appropriate to the pricing index... I.e. m/1/yyyy because everthing in August for a particular Pricing Index.
Is there a quick fix to the keyword problem for upsizing or do I get to rename the table <dolt>?
I hope this is enough detail because the back-up tape is crying for storage and I've got to get out of here for a change.