Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:20 PM
Ice Man
Guest
 
Posts: n/a
Default IT_REPORT

Hi all

I created a DSN called IT_REPORT which points to an access database
then I tried using asp code to open connection to it but the server gave me
error

when I changed the name to ITREPORT it worked fine

I have a personal laptop running windows 2000

what might be the problem?
Thanks in advance


  #2  
Old July 19th, 2005, 02:20 PM
Curt_C [MVP]
Guest
 
Posts: n/a
Default Re: IT_REPORT

what was the error?
Sounds like you misnamed the DSN to me. Try not using a DSN though, declare
your conn string in your ASA or in the page.

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Ice Man" <ehc00@hotmail.com> wrote in message
news:OpbGPk9bEHA.3804@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi all
>
> I created a DSN called IT_REPORT which points to an access database
> then I tried using asp code to open connection to it but the server gave[/color]
me[color=blue]
> error
>
> when I changed the name to ITREPORT it worked fine
>
> I have a personal laptop running windows 2000
>
> what might be the problem?
> Thanks in advance
>
>[/color]


  #3  
Old July 19th, 2005, 02:20 PM
Ice Man
Guest
 
Posts: n/a
Default Re: IT_REPORT

Hi Curt

thanks for ur reply
Here is the code

----------------------------------------------------------------------------
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----
<%@ Language=VBScript %>
<%Option explicit%>
<%
Dim Intra
Dim Login, pass
Dim stringSQL, results

Session("UserLoggedIn") = FALSE

Application("Conn") = "IT_Report"
Application("Usr") = ""
Application("Pwd") = ""


Set Intra = Server.CreateObject("ADODB.Connection")
Intra.Open Application("Conn"),Application("Usr"),Application ("Pwd")
..
..
..
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----------------------------------------------------------------------------
----
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:O65339%23bEHA.3988@tk2msftngp13.phx.gbl...[color=blue]
> what was the error?
> Sounds like you misnamed the DSN to me. Try not using a DSN though,[/color]
declare[color=blue]
> your conn string in your ASA or in the page.
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Ice Man" <ehc00@hotmail.com> wrote in message
> news:OpbGPk9bEHA.3804@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi all
> >
> > I created a DSN called IT_REPORT which points to an access database
> > then I tried using asp code to open connection to it but the server gave[/color]
> me[color=green]
> > error
> >
> > when I changed the name to ITREPORT it worked fine
> >
> > I have a personal laptop running windows 2000
> >
> > what might be the problem?
> > Thanks in advance
> >
> >[/color]
>
>[/color]


  #4  
Old July 19th, 2005, 02:20 PM
Curt_C [MVP]
Guest
 
Posts: n/a
Default Re: IT_REPORT

uh.....ok......and?


--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Ice Man" <ehc00@hotmail.com> wrote in message
news:uEplkQ$bEHA.1048@tk2msftngp13.phx.gbl...[color=blue]
> Hi Curt
>
> thanks for ur reply
> Here is the code
>
> --------------------------------------------------------------------------[/color]
--[color=blue]
> --------------------------------------------------------------------------[/color]
--[color=blue]
> ----
> --------------------------------------------------------------------------[/color]
--[color=blue]
> --------------------------------------------------------------------------[/color]
--[color=blue]
> ----
> <%@ Language=VBScript %>
> <%Option explicit%>
> <%
> Dim Intra
> Dim Login, pass
> Dim stringSQL, results
>
> Session("UserLoggedIn") = FALSE
>
> Application("Conn") = "IT_Report"
> Application("Usr") = ""
> Application("Pwd") = ""
>
>
> Set Intra = Server.CreateObject("ADODB.Connection")
> Intra.Open Application("Conn"),Application("Usr"),Application ("Pwd")
> .
> .
> .
> --------------------------------------------------------------------------[/color]
--[color=blue]
> --------------------------------------------------------------------------[/color]
--[color=blue]
> ----
> --------------------------------------------------------------------------[/color]
--[color=blue]
> --------------------------------------------------------------------------[/color]
--[color=blue]
> ----
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:O65339%23bEHA.3988@tk2msftngp13.phx.gbl...[color=green]
> > what was the error?
> > Sounds like you misnamed the DSN to me. Try not using a DSN though,[/color]
> declare[color=green]
> > your conn string in your ASA or in the page.
> >
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > Site: http://www.Darkfalz.com
> > Blog: http://blog.Darkfalz.com
> >
> >
> > "Ice Man" <ehc00@hotmail.com> wrote in message
> > news:OpbGPk9bEHA.3804@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi all
> > >
> > > I created a DSN called IT_REPORT which points to an access database
> > > then I tried using asp code to open connection to it but the server[/color][/color][/color]
gave[color=blue][color=green]
> > me[color=darkred]
> > > error
> > >
> > > when I changed the name to ITREPORT it worked fine
> > >
> > > I have a personal laptop running windows 2000
> > >
> > > what might be the problem?
> > > Thanks in advance
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #5  
Old July 19th, 2005, 02:20 PM
Ice Man
Guest
 
Posts: n/a
Default Re: IT_REPORT

and ....


on line 16 which is Intra.Open
Application("Conn"),Application("Usr"),Application ("Pwd")

the IE browser gives me error... mentioned in it "providor error" and the
script can't execute

Thx


"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:Ow4NVT$bEHA.2660@TK2MSFTNGP12.phx.gbl...[color=blue]
> uh.....ok......and?
>
>
> --
> Curt Christianson
> Owner/Lead Developer, DF-Software
> Site: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Ice Man" <ehc00@hotmail.com> wrote in message
> news:uEplkQ$bEHA.1048@tk2msftngp13.phx.gbl...[color=green]
> > Hi Curt
> >
> > thanks for ur reply
> > Here is the code
> >[/color]
>
> --------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --[color=green]
> > ----[/color]
>
> --------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --[color=green]
> > ----
> > <%@ Language=VBScript %>
> > <%Option explicit%>
> > <%
> > Dim Intra
> > Dim Login, pass
> > Dim stringSQL, results
> >
> > Session("UserLoggedIn") = FALSE
> >
> > Application("Conn") = "IT_Report"
> > Application("Usr") = ""
> > Application("Pwd") = ""
> >
> >
> > Set Intra = Server.CreateObject("ADODB.Connection")
> > Intra.Open Application("Conn"),Application("Usr"),Application ("Pwd")
> > .
> > .
> > .[/color]
>
> --------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --[color=green]
> > ----[/color]
>
> --------------------------------------------------------------------------
> --
>
> --------------------------------------------------------------------------
> --[color=green]
> > ----
> > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > news:O65339%23bEHA.3988@tk2msftngp13.phx.gbl...[color=darkred]
> > > what was the error?
> > > Sounds like you misnamed the DSN to me. Try not using a DSN though,[/color]
> > declare[color=darkred]
> > > your conn string in your ASA or in the page.
> > >
> > > --
> > > Curt Christianson
> > > Owner/Lead Developer, DF-Software
> > > Site: http://www.Darkfalz.com
> > > Blog: http://blog.Darkfalz.com
> > >
> > >
> > > "Ice Man" <ehc00@hotmail.com> wrote in message
> > > news:OpbGPk9bEHA.3804@TK2MSFTNGP10.phx.gbl...
> > > > Hi all
> > > >
> > > > I created a DSN called IT_REPORT which points to an access database
> > > > then I tried using asp code to open connection to it but the server[/color][/color]
> gave[color=green][color=darkred]
> > > me
> > > > error
> > > >
> > > > when I changed the name to ITREPORT it worked fine
> > > >
> > > > I have a personal laptop running windows 2000
> > > >
> > > > what might be the problem?
> > > > Thanks in advance
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #6  
Old July 19th, 2005, 02:20 PM
Curt_C [MVP]
Guest
 
Posts: n/a
Default Re: IT_REPORT

that's what I've been trying to get from the start, the error.

Try using something like

ConnString = "Provider=SQLOLEDB.1;Persist Security Info=False;" & _
"User ID='yourUserName';" & _
"Password='yourPassword';" & _
"Initial Catalog='yourDBName';" & _
"Data Source='yourServerName';"


--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Ice Man" <ehc00@hotmail.com> wrote in message
news:eZ7mmw$bEHA.996@TK2MSFTNGP12.phx.gbl...[color=blue]
> and ....
>
>
> on line 16 which is Intra.Open
> Application("Conn"),Application("Usr"),Application ("Pwd")
>
> the IE browser gives me error... mentioned in it "providor error" and[/color]
the[color=blue]
> script can't execute
>
> Thx
>
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:Ow4NVT$bEHA.2660@TK2MSFTNGP12.phx.gbl...[color=green]
> > uh.....ok......and?
> >
> >
> > --
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > Site: http://www.Darkfalz.com
> > Blog: http://blog.Darkfalz.com
> >
> >
> > "Ice Man" <ehc00@hotmail.com> wrote in message
> > news:uEplkQ$bEHA.1048@tk2msftngp13.phx.gbl...[color=darkred]
> > > Hi Curt
> > >
> > > thanks for ur reply
> > > Here is the code
> > >[/color]
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > --
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > --[color=darkred]
> > > ----[/color]
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > --
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > --[color=darkred]
> > > ----
> > > <%@ Language=VBScript %>
> > > <%Option explicit%>
> > > <%
> > > Dim Intra
> > > Dim Login, pass
> > > Dim stringSQL, results
> > >
> > > Session("UserLoggedIn") = FALSE
> > >
> > > Application("Conn") = "IT_Report"
> > > Application("Usr") = ""
> > > Application("Pwd") = ""
> > >
> > >
> > > Set Intra = Server.CreateObject("ADODB.Connection")
> > > Intra.Open Application("Conn"),Application("Usr"),Application ("Pwd")
> > > .
> > > .
> > > .[/color]
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > --
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > --[color=darkred]
> > > ----[/color]
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > --
> >[/color]
>
> --------------------------------------------------------------------------[color=green]
> > --[color=darkred]
> > > ----
> > > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> > > news:O65339%23bEHA.3988@tk2msftngp13.phx.gbl...
> > > > what was the error?
> > > > Sounds like you misnamed the DSN to me. Try not using a DSN though,
> > > declare
> > > > your conn string in your ASA or in the page.
> > > >
> > > > --
> > > > Curt Christianson
> > > > Owner/Lead Developer, DF-Software
> > > > Site: http://www.Darkfalz.com
> > > > Blog: http://blog.Darkfalz.com
> > > >
> > > >
> > > > "Ice Man" <ehc00@hotmail.com> wrote in message
> > > > news:OpbGPk9bEHA.3804@TK2MSFTNGP10.phx.gbl...
> > > > > Hi all
> > > > >
> > > > > I created a DSN called IT_REPORT which points to an access[/color][/color][/color]
database[color=blue][color=green][color=darkred]
> > > > > then I tried using asp code to open connection to it but the[/color][/color][/color]
server[color=blue][color=green]
> > gave[color=darkred]
> > > > me
> > > > > error
> > > > >
> > > > > when I changed the name to ITREPORT it worked fine
> > > > >
> > > > > I have a personal laptop running windows 2000
> > > > >
> > > > > what might be the problem?
> > > > > Thanks in advance
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


  #7  
Old July 19th, 2005, 02:21 PM
Jeff Dillon
Guest
 
Posts: n/a
Default Re: IT_REPORT

Then use ITREPORT? Sounds like it doesn't like the underscore...perhaps
it's not a valid character in the version of data access that you're using.

Or use a connection string as suggested.

Patient:

"Doctor doctor..my arm hurts when I do this"

Doctor:

"Then don't do that."

Jeff

"Ice Man" <ehc00@hotmail.com> wrote in message
news:OpbGPk9bEHA.3804@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi all
>
> I created a DSN called IT_REPORT which points to an access database
> then I tried using asp code to open connection to it but the server gave[/color]
me[color=blue]
> error
>
> when I changed the name to ITREPORT it worked fine
>
> I have a personal laptop running windows 2000
>
> what might be the problem?
> Thanks in advance
>
>[/color]


  #8  
Old July 19th, 2005, 02:21 PM
Ice Man
Guest
 
Posts: n/a
Default Re: IT_REPORT

Thanks for the reply Jeff...

Personally I like to know about the Big bang (if it exists) origin of
creatures secrets of religion... Beleive I can't accept that some strange
behavior of a software pass without me knowing the cause!

Just for education! :)

"Jeff Dillon" <jeff@removeemergencyreporting.com> wrote in message
news:eZ3fqqBcEHA.3580@TK2MSFTNGP11.phx.gbl...[color=blue]
> Then use ITREPORT? Sounds like it doesn't like the underscore...perhaps
> it's not a valid character in the version of data access that you're[/color]
using.[color=blue]
>
> Or use a connection string as suggested.
>
> Patient:
>
> "Doctor doctor..my arm hurts when I do this"
>
> Doctor:
>
> "Then don't do that."
>
> Jeff
>
> "Ice Man" <ehc00@hotmail.com> wrote in message
> news:OpbGPk9bEHA.3804@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi all
> >
> > I created a DSN called IT_REPORT which points to an access database
> > then I tried using asp code to open connection to it but the server gave[/color]
> me[color=green]
> > error
> >
> > when I changed the name to ITREPORT it worked fine
> >
> > I have a personal laptop running windows 2000
> >
> > what might be the problem?
> > Thanks in advance
> >
> >[/color]
>
>[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles