473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Another SQL Server Question

I've installed SQL Server Express and upsized a couple of databases
(tables only). Almost everything works well but I've hit a snag with
one of my queries. If I have a calculated field like: "SchedDelay2:
[SchedDelay]*[Forms]![QDelays]![DateSpan]*60" in the query grid, I get
an "ODBC-call failed" error that is being caused by the reference to a
form field.

If I remove the reference to the field and just have the calculated
field as:
"SchedDelay2: [SchedDelay*60" I don't get the ODBC error. Why does
this query work fine with a Jet backend but gives this problem with an
SQL Server backend?

Also, when I upsize a database, SQL Server retains the table names
from my Jet backend. If I delete the table links and then relink
them, the table names are then prefixed by "dbo". I then have to go
through the tables and rename them all by removing the "dbo" prefix.
Is there an easier way to avoid the "dbo" prefix than this?
Jan 25 '08 #1
4 1602
On Thu, 24 Jan 2008 23:32:55 -0800 (PST), jo*******@live.com.au wrote:

SQL Server is a server and does not know anything about your
application or your forms. It just accepts sql statements and will
execute them or return results. Yours is not a valid T-SQL statement.
Same will happen if your queries use VBA functions. T-SQL has a few,
but you certainly can't use custom functions.

No. Unless you re-link using code (check help file for Connect and
RefreshLink).

-Tom.

>I've installed SQL Server Express and upsized a couple of databases
(tables only). Almost everything works well but I've hit a snag with
one of my queries. If I have a calculated field like: "SchedDelay2:
[SchedDelay]*[Forms]![QDelays]![DateSpan]*60" in the query grid, I get
an "ODBC-call failed" error that is being caused by the reference to a
form field.

If I remove the reference to the field and just have the calculated
field as:
"SchedDelay2: [SchedDelay*60" I don't get the ODBC error. Why does
this query work fine with a Jet backend but gives this problem with an
SQL Server backend?

Also, when I upsize a database, SQL Server retains the table names
from my Jet backend. If I delete the table links and then relink
them, the table names are then prefixed by "dbo". I then have to go
through the tables and rename them all by removing the "dbo" prefix.
Is there an easier way to avoid the "dbo" prefix than this?
Jan 25 '08 #2
On Jan 26, 12:16*am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Thu, 24 Jan 2008 23:32:55 -0800 (PST), joseph...@live.com.au wrote:

SQL Server is a server and does not know anything about your
application or your forms. It just accepts sql statements and will
execute them or return results. Yours is not a valid T-SQL statement.
Same will happen if your queries use VBA functions. T-SQL has a few,
but you certainly can't use custom functions.

No. Unless you re-link using code (check help file for Connect and
RefreshLink).

-Tom.
Thanks Tom.
Jan 25 '08 #3
On Jan 26, 12:16*am, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Thu, 24 Jan 2008 23:32:55 -0800 (PST), joseph...@live.com.au wrote:

SQL Server is a server and does not know anything about your
application or your forms. It just accepts sql statements and will
execute them or return results. Yours is not a valid T-SQL statement.
Same will happen if your queries use VBA functions. T-SQL has a few,
but you certainly can't use custom functions.

No. Unless you re-link using code (check help file for Connect and
RefreshLink).

-Tom.
I guess I thought that all queries etc in the Access frontend would
still work as before given that I have only upsized the tables to SQL
Server using the upsizing wizard and am connecting to them through an
ODBC connection.

All of this is very new to me.
Jan 25 '08 #4
On Jan 26, 11:40*am, "Rick Brandt" <rickbran...@hotmail.comwrote:
You could possibly stay with an Access query setup by first writing a query that
does not need the form reference in the SELECT clause and then using that query
as the input to a second query where the form reference is added in.
Thanks again for the reply Rick. I think I'll go with your latter
suggestion.
Jan 26 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: fig000 | last post by:
Hi, I'm relatively new to Javascript so please bear with me on what might sound like silly questions. This is what I want to do: I'm working in classic asp (I have to for this project). I...
51
by: nospam | last post by:
THIS IS the DOTNETJUNKIES MESSAGE ------------------------- We're Sorry As many of you know we have recently launched SqlJunkies.com. We have overhauled our runtime and will be using it on...
6
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute...
4
by: cwhite | last post by:
Hi I have another drop list question. I have a table like this: computer dell computer ibm computer hp
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
1
by: John Sheppard | last post by:
Thanks to everyone that responded to my previous Socket Programming question. Now I have run into some behavior that I don't quite understand. Programming environment. VS.NET 2003, C#, Windows...
0
by: Sebastian Hiller | last post by:
Hello, i'm new to .Net (i'm using VB as language and i'm working in the code-behind mode) and i can't solve the following problem: I have a WebForm and want to Add a UserControl...
8
by: GeekBoy | last post by:
I understand the benefit of pushing the StateServer process onto another computer to "balance" the load and take some cpu and memory usage off the web server, but how much could it possibly help?...
7
by: clintonG | last post by:
I'm puzzled and don't think this is possible but if an application that is running on websiteA generates a file can FTP be used from websiteA to transfer that file to websiteB which would be...
5
by: Mirxon | last post by:
Hello, I'm working on a C program under Ubuntu. It's basd on socket. Browser calls a client cgi (C program), and send some parameters to server (C program). Server runs another program...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.