Friday, March 30, 2012
outlook web access - weird
address. No problem there. When the email is opened in the Outlook client,
the attachment appears as expected and can be opened. The problem is when
the user accesses their email using Outlook web access (OWA). The email
appears and even has the paper clip identifying the attachment. However,
when the email is opened. the attachment is gone."chicagoclone" <chicagoclone@.discussions.microsoft.com> wrote in message
news:F54988C0-2987-484D-AE80-F0B50F002E1D@.microsoft.com...
>I have subscriptions setup to deliver reports in PDF format to users email
> address. No problem there. When the email is opened in the Outlook
> client,
> the attachment appears as expected and can be opened. The problem is when
> the user accesses their email using Outlook web access (OWA). The email
> appears and even has the paper clip identifying the attachment. However,
> when the email is opened. the attachment is gone.
Can they open other pdf-files from their OWA?
Any security settings in play?
Did they test their OWA on a machine they knew there was a PDF-reader
installed on?
I know that sometimes I need to download pdf-files on my computer before
opening them in my OWA. But I'm quite sure the link for downloading is there
when I open the message, though.
Kaisa M. Lindahl|||they can open other pdf's through OWA, just not the ones delivered through
reporting services.
"Kaisa M. Lindahl" wrote:
> "chicagoclone" <chicagoclone@.discussions.microsoft.com> wrote in message
> news:F54988C0-2987-484D-AE80-F0B50F002E1D@.microsoft.com...
> >I have subscriptions setup to deliver reports in PDF format to users email
> > address. No problem there. When the email is opened in the Outlook
> > client,
> > the attachment appears as expected and can be opened. The problem is when
> > the user accesses their email using Outlook web access (OWA). The email
> > appears and even has the paper clip identifying the attachment. However,
> > when the email is opened. the attachment is gone.
> Can they open other pdf-files from their OWA?
> Any security settings in play?
> Did they test their OWA on a machine they knew there was a PDF-reader
> installed on?
> I know that sometimes I need to download pdf-files on my computer before
> opening them in my OWA. But I'm quite sure the link for downloading is there
> when I open the message, though.
> Kaisa M. Lindahl
>
>
Outlook Mail on Cluster
I have Sql2k virtual Server running in Active passive mode on Win2k3
Cluster.
Now my question is how do i configure the Outlook client on those nodes, is
it just a straight install on both the nodes and then confiture it with Sql
Virtual server?
Can i make the Oulook client to be a cluster resource
thanks in advance
Outlook is not cluster aware. You can create identical Outlook profiles on
all cluster nodes but any messages 'in process' during a cluster failover
will be lost. Outlook is also not a service so there can be some stability
issues as well. I prefer using xp_smtp from www.sqldev.net. It is not a
drop-in replacement for SQL Mail, but it can be adapted or extended to cover
most of your needs. I use it on a cluster and it is extremely stable.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
"Nik" <sqlserverkb@.yahoo.com> wrote in message
news:uT$Ro692EHA.1144@.TK2MSFTNGP09.phx.gbl...
> Hi All
> I have Sql2k virtual Server running in Active passive mode on Win2k3
> Cluster.
> Now my question is how do i configure the Outlook client on those nodes,
is
> it just a straight install on both the nodes and then confiture it with
Sql
> Virtual server?
> Can i make the Oulook client to be a cluster resource
> thanks in advance
>
|||Hi Nik,
In addition to the great advice/comments that Geoff had, I wanted to add
that SQL Mail is not supported on a cluster.
http://support.microsoft.com/default...B;EN-US;298723
BUG: SQL Mail Not Fully Supported for Use in Conjunction with Cluster
Virtual SQL Servers (298723)
Thanks!
Donna Lambert
Microsoft PSS
SQL Server Support
|||not supported, but works to some degree... well, thats what i am hearing
from others.
"Donna Lambert [MS]" <dlambert@.online.microsoft.com> wrote in message
news:ke4CL9rGFHA.1140@.TK2MSFTNGXA02.phx.gbl...
> Hi Nik,
> In addition to the great advice/comments that Geoff had, I wanted to add
> that SQL Mail is not supported on a cluster.
> http://support.microsoft.com/default...B;EN-US;298723
> BUG: SQL Mail Not Fully Supported for Use in Conjunction with Cluster
> Virtual SQL Servers (298723)
> Thanks!
> Donna Lambert
> Microsoft PSS
> SQL Server Support
>
Wednesday, March 28, 2012
Outlook licensing on SQL Server
Just a quick question, if I use outlook as the MAPI client for the SQL
server agent and SQL Mail section of SQL Server 2000 do I need to purchase a
license for the copy of Outlook I will use on the server even though we wll
not actually be using Outlook on that server as a full client?
I forgot to ask if it also means that we need a, Exhange CAL for the SQL
server as Outlook will be communicating with our Exchange server
"OGTI" wrote:
> Hi
> Just a quick question, if I use outlook as the MAPI client for the SQL
> server agent and SQL Mail section of SQL Server 2000 do I need to purchase a
> license for the copy of Outlook I will use on the server even though we wll
> not actually be using Outlook on that server as a full client?
|||Hi.
You need the appropriate Office license and an Exchange CAL.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"OGTI" <OGTI@.discussions.microsoft.com> wrote in message
news:66B8929F-3E51-4CBD-8707-D03834C372DE@.microsoft.com...[vbcol=seagreen]
>I forgot to ask if it also means that we need a, Exhange CAL for the SQL
> server as Outlook will be communicating with our Exchange server
> "OGTI" wrote:
Outlook licensing on SQL Server
Just a quick question, if I use outlook as the MAPI client for the SQL
server agent and SQL Mail section of SQL Server 2000 do I need to purchase a
license for the copy of Outlook I will use on the server even though we wll
not actually be using Outlook on that server as a full client?I forgot to ask if it also means that we need a, Exhange CAL for the SQL
server as Outlook will be communicating with our Exchange server
"OGTI" wrote:
> Hi
> Just a quick question, if I use outlook as the MAPI client for the SQL
> server agent and SQL Mail section of SQL Server 2000 do I need to purchase a
> license for the copy of Outlook I will use on the server even though we wll
> not actually be using Outlook on that server as a full client?|||Hi.
You need the appropriate Office license and an Exchange CAL.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"OGTI" <OGTI@.discussions.microsoft.com> wrote in message
news:66B8929F-3E51-4CBD-8707-D03834C372DE@.microsoft.com...
>I forgot to ask if it also means that we need a, Exhange CAL for the SQL
> server as Outlook will be communicating with our Exchange server
> "OGTI" wrote:
>> Hi
>> Just a quick question, if I use outlook as the MAPI client for the SQL
>> server agent and SQL Mail section of SQL Server 2000 do I need to
>> purchase a
>> license for the copy of Outlook I will use on the server even though we
>> wll
>> not actually be using Outlook on that server as a full client?
Outlook licensing on SQL Server
Just a quick question, if I use outlook as the MAPI client for the SQL
server agent and SQL Mail section of SQL Server 2000 do I need to purchase a
license for the copy of Outlook I will use on the server even though we wll
not actually be using Outlook on that server as a full client?I forgot to ask if it also means that we need a, Exhange CAL for the SQL
server as Outlook will be communicating with our Exchange server
"OGTI" wrote:
> Hi
> Just a quick question, if I use outlook as the MAPI client for the SQL
> server agent and SQL Mail section of SQL Server 2000 do I need to purchase
a
> license for the copy of Outlook I will use on the server even though we wl
l
> not actually be using Outlook on that server as a full client?|||Hi.
You need the appropriate Office license and an Exchange CAL.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"OGTI" <OGTI@.discussions.microsoft.com> wrote in message
news:66B8929F-3E51-4CBD-8707-D03834C372DE@.microsoft.com...[vbcol=seagreen]
>I forgot to ask if it also means that we need a, Exhange CAL for the SQL
> server as Outlook will be communicating with our Exchange server
> "OGTI" wrote:
>
Outlook Client on SQL Cluster
We currently have a two node sql cluster running SQL Mail.
At present we have to manually start up outlook so the mail client works.
I have been looking at the resource options and wondered if it was possible to setup outlook client as a resource and if so, what reg keys would I need to tell the resource to access?
Cheers
Adam
Hi Adam,
If I get your question right, you are wondering if you could make Outlook client as a cluster resource.
Answer is Yes. I am not well aware of what Outlook clients need( like regkeys e.t.c.). But say if you want to make a simple application like Notepad.exe or Cmd.exe you could host them as cluster resources by making a resource of type "Generic Application".
Here is a little more on Generic Application resouce type: http://msdn.microsoft.com/library/de...pplication.asp
If this does not help then you might need to write a Resource dll that could make the interact with the OutLook client.
More on creating new Resource Types: http://msdn.microsoft.com/library/de...urce_types.asp
Thanks,
Sandeep Sutari
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no rights. Use of any included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
"Adam Maltby" <adamm@.frfl.co.uk> wrote in message news:enSXGsoLEHA.3324@.TK2MSFTNGP10.phx.gbl...
Hi,
We currently have a two node sql cluster running SQL Mail.
At present we have to manually start up outlook so the mail client works.
I have been looking at the resource options and wondered if it was possible to setup outlook client as a resource and if so, what reg keys would I need to tell the resource to access?
Cheers
Adam
|||Thanks for your response..... I got it working (in a fashion)...
My problem now is that although outlook will start and receive email as a cluster resource, sql email cannot access it, reason being it is now a cluster service it has to start using cluster services credentials, not the logged in user credentials....
Does anyone know of any way round that?
Cheers
Adam
|||MSCS doesn't support SQL Mail properly...
Try to use non-clustering server instead.
sql
Outlook 2003 with SQL2000
Is anyone using Outlook 2003 as the mail client with SQL2000 on either W2K
or W2K3? Please let me know if this combination is being used?
Thanks
Chris Wood
Alberta Department of Energy
CANADAHaving the same problem here.|||LW,
Are you having problems trying to use Outlook 2003 client for SQL Mail on
the SQL Server?
I just want to know if this is a valid combination.
Chris
"LW" <anonymous@.discussions.microsoft.com> wrote in message
news:7BD31EC5-16B0-47B5-8FBA-2B9E0C09C261@.microsoft.com...
> Having the same problem here.
Outlook 2003 with SQL2000
Is anyone using Outlook 2003 as the mail client with SQL2000 on either W2K
or W2K3? Please let me know if this combination is being used?
Thanks
Chris Wood
Alberta Department of Energy
CANADAHaving the same problem here.|||LW,
Are you having problems trying to use Outlook 2003 client for SQL Mail on
the SQL Server?
I just want to know if this is a valid combination.
Chris
"LW" <anonymous@.discussions.microsoft.com> wrote in message
news:7BD31EC5-16B0-47B5-8FBA-2B9E0C09C261@.microsoft.com...
> Having the same problem here.
Wednesday, March 21, 2012
Out of options, Need performance help.
here is the scenario:
1. I need to return a data back to client (result set varies 20-10,000)
2. I only want to show 20 records at a time
3. To get info i need to display i need to join 10 tables
When there are small #s of records it works but when i get over 8000 then it becomes a problem:
1. The first version was:
Get all data using big query and return everything back to client and display only 20 at a time (not very proficient).
Takes around 15 seconds to view 20 records.
2. Inspired by 4GuysFromRolla (http://www.4guysfromrolla.com/webtech/062899-1.shtml)
Use Stored Procedure w/ server side paging logic to get 20 records at the time. I had to pass every filter parameter and stuff. SP had to sort resultset and return only 20 records i need to display.
Takes around 5 seconds to view 20 records.
I still think it's slow, i know this is a very broad question but is there any other way to do it, logically?
Any help is appreciated.
Wojo.You coud try running a few instances of the search in anticipation of the Next/Prev scenario.
While users are reading 20 in their window the application is downloading a further 20 behind the scenes asynchronously. I couldn't give an example. At least they wouldn't be aware of the 5 seconds if it took longer to read 20.
The only other example I have is for Delphi, sorry.|||Well...you need to order by something...and you need to know what page your on...
How about..
USE Northwind
GO
DECLARE @.Page int, @.sql varchar(8000)
SELECT @.Page = 2
SELECT @.sql = 'SELECT * FROM (SELECT TOP 20 * FROM (SELECT TOP '
+ CONVERT(varchar(10),@.Page * 20)
+ ' * FROM Orders ORDER by OrderId) AS A '
+ ' ORDER By OrderID Desc) AS B '
+ ' ORDER BY OrderId'
EXEC(@.sql)|||Thanks guys,
Brett, how does this work?|||To see it work...go to QA...cut and paste the code and execute it...
What it does roughly is that if you want page x, the inner query will select the TOP x * 20 rows (last 20 will be page x...
Then order by a key descending to get the last 20 rows..the reorder those by the key, so page 20 will be in the correct order to be displayed...
test it, let me know if it works for you...
Oh, and btw, this will only transmit the 20 rows across..you don't want to be moving large chunks for no reason...especially since data is fluid and may change at any time...|||Hmm,
What if i want to sort by other columns, plus my IDs aren't sequential :(|||You have to order by something...
The order of data in a database is meaningless....
And yes can can order by more than 1 thing...
And it doesn't have to be an int...
Look at a phonebook...they don't order by phone number...|||Thanks Brett,
it looks like it works preety well, i'm getting 1-2 seconds on couple of first pages!
One last question: is there any way to get total number of records from the inner query? and i would rather not requery this, any way to get the count while doing what we are doing?
thanks|||What's the total row count?
Did you try it for the last page yet?
And...
One last question: is there any way to get total number of records from the inner query? and i would rather not requery this, any way to get the count while doing what we are doing?
Why does this matter to you? Remembering the page number should be more important...no?
And cool site btw...do you sell just parts or whole systems...where are you based out of?|||The row count was ~9k
I did and it took 6-7 seconds, which is not that bad considering almost nobody looks at last pages :)
It matters to me because i'm displaying total number of records and i need this number to drive my paging logic (ex. page 1 out of 12)
Re: my site, its just my personal project, this question is for work :) and no i actually don't sell anything in there, i wrote this site to allow people to sell buy hardware for no charge...
thanks again for all your help man!|||What are you SELECTING, and what's the ORDER BY on?
Are they all indexed?
I don't like 6/7 seconds....|||i will look into indexes later, i would like to get this running first, so i need total count of records...|||Wouldn't that just be @.Pages*20?|||lol, i need to know what @.PAGES is don't i?
i don't think i made myself clear, i want to know the total number of records i'm gonna page myself though, ex:
Found 100 records, you are on page number 1 out of 5 (since there is 20 recs per page)
thanks.|||"i will look into indexes later"
If you are concerned about performance NOW, then you need to look into indexes NOW. I wondered what kind of indexes you had when I read that it started getting slow at 8000 records. 8000 records is peanuts.
Doing a select count(*) to get the rowcount should not be too expensive. Another method is to select the rowcount from the sysindexes table.|||I should have mentined before but I do this instinctivly, you may already be doing it.
When you join yuor tables dont use * and avoid large text fields. can be quite a surprise how long they take.
Try a skeleton version of the query that just selects and joins the keys. Then work up to include fields you need.
Sorry if you are allready doing that. And nice site you have there.
Monday, March 12, 2012
OSQL Utility to connect to the SQL Server.
Can I just use OSQL in one of my PC which does't have SQL
client to connect to one of the SQL Server?
i.e. I am trying to connect an SQL Server from one of my
PC. In that PC I don't have SQL Client. I don't want to
install SQL Client also. But it is enough to use the OSQL
utility to connect to the SQL Server.
Any answer?
Thanks in advance
Anand.I guess you can try to copy only OSQL.EXE to that machine. But chances are
that is uses some DLL, but you would notice that... Note that you require an
SQL Server Client license per the license agreement to do this.
--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Anand" <gurusanand@.yahoo.com> wrote in message
news:0a3f01c3a9af$d9a1dae0$a301280a@.phx.gbl...
> Hi
> Can I just use OSQL in one of my PC which does't have SQL
> client to connect to one of the SQL Server?
> i.e. I am trying to connect an SQL Server from one of my
> PC. In that PC I don't have SQL Client. I don't want to
> install SQL Client also. But it is enough to use the OSQL
> utility to connect to the SQL Server.
> Any answer?
> Thanks in advance
> Anand.|||Tibor Karaszi wrote:
> I guess you can try to copy only OSQL.EXE to that machine. But
> chances are that is uses some DLL, but you would notice that... Note
> that you require an SQL Server Client license per the license
> agreement to do this.
Hi guys.
Anand, I believe the following are needed to run osql.exe (although I
havent tested it yet). Obviously from this list you will notice that
most are either transport files (part of the OS) and OS specific files.
They will obviously need to be registered with the OS.
On a fresh system you will probably only need to install the latest
MDAC and then you should be able to run osql, although not sure the
sqlsrv32.dll is installed by MDAC or through SQL Client install so if
the latter is the case you will need to copy and register this.
Please take note of tibor's comments that a client seat license will
probably still be needed.
osql.exe
C:\WINNT\system32\...
odbc32.dll
odbcint.dll
sqlsrv32.dll
NETAPI32.DLL
secur32.dll
netrap.dll
samlib.dll
ws2_32.dll
ws2help.dll
dnsapi.dll
wsock32.dll
sqlunirl.dll
WINSPOOL.DRV
OLE32.DLL
NDDEAPI.DLL
sqlsrv32.rll
odbccp32.dll
dbnetlib.dll
security.dll
msapsspc.dll
SCHANNEL.DLL
msnsspc.dll
digest.dll
MSV1_0.DLL
ntdsapi.dll
msafd.dll
wshtcpip.dll
RNR20.DLL
IPHLPAPI.DLL
icmp.dll
mprapi.dll
activeds.dll
adsldpc.dll
rtutils.dll
SETUPAPI.DLL
USERENV.DLL
RASAPI32.DLL
RASMAN.DLL
TAPI32.DLL
DHCPCSVC.DLL
software.LOG
rtutils.dll
winrnr.dll
rasadhlp.dll
--
Br,
Mark Broadbent
mcdba , mcse+i
=============
OSQL using named pipes instead of TCP/IP
I'm having a small issue with OSQL. When I type "OSQL -S MYSERVER -E" , it
connects through TCP/IP, but on one client (that has DEVELOPER edition
installed), it tries to connect through Named Pipes, which is disabled for
the server that I'm trying to connect to. I checked the Client Config
Protocols and TCP/IP (2) is listed before Named Pipes (3).
I know I can prefix the server name with TCP: to force it to use TCP/IP,
but I don't want to do that. How can I get OSQL to connect through TCP/IP
instead of Named Pipes? Again the client has SQL 2005 Developer and the
Server has SQL 2005 Standard
Thanks!Found out. There was an alias for this server in there that told it to use
NP. Now to find out why there was an alias in there. . . . .
"Nieves" <JuanN@.yahoo.com> wrote in message
news:%238m7S8yPHHA.2312@.TK2MSFTNGP04.phx.gbl...
> Hi,
> I'm having a small issue with OSQL. When I type "OSQL -S MYSERVER -E" ,
> it connects through TCP/IP, but on one client (that has DEVELOPER edition
> installed), it tries to connect through Named Pipes, which is disabled for
> the server that I'm trying to connect to. I checked the Client Config
> Protocols and TCP/IP (2) is listed before Named Pipes (3).
> I know I can prefix the server name with TCP: to force it to use TCP/IP,
> but I don't want to do that. How can I get OSQL to connect through TCP/IP
> instead of Named Pipes? Again the client has SQL 2005 Developer and the
> Server has SQL 2005 Standard
> Thanks!
>
Friday, March 9, 2012
OSQL using named pipes instead of TCP/IP
I'm having a small issue with OSQL. When I type "OSQL -S MYSERVER -E" , it
connects through TCP/IP, but on one client (that has DEVELOPER edition
installed), it tries to connect through Named Pipes, which is disabled for
the server that I'm trying to connect to. I checked the Client Config
Protocols and TCP/IP (2) is listed before Named Pipes (3).
I know I can prefix the server name with TCP: to force it to use TCP/IP,
but I don't want to do that. How can I get OSQL to connect through TCP/IP
instead of Named Pipes? Again the client has SQL 2005 Developer and the
Server has SQL 2005 Standard
Thanks!
Found out. There was an alias for this server in there that told it to use
NP. Now to find out why there was an alias in there. . . . .
"Nieves" <JuanN@.yahoo.com> wrote in message
news:%238m7S8yPHHA.2312@.TK2MSFTNGP04.phx.gbl...
> Hi,
> I'm having a small issue with OSQL. When I type "OSQL -S MYSERVER -E" ,
> it connects through TCP/IP, but on one client (that has DEVELOPER edition
> installed), it tries to connect through Named Pipes, which is disabled for
> the server that I'm trying to connect to. I checked the Client Config
> Protocols and TCP/IP (2) is listed before Named Pipes (3).
> I know I can prefix the server name with TCP: to force it to use TCP/IP,
> but I don't want to do that. How can I get OSQL to connect through TCP/IP
> instead of Named Pipes? Again the client has SQL 2005 Developer and the
> Server has SQL 2005 Standard
> Thanks!
>
OSQL using named pipes instead of TCP/IP
I'm having a small issue with OSQL. When I type "OSQL -S MYSERVER -E" , it
connects through TCP/IP, but on one client (that has DEVELOPER edition
installed), it tries to connect through Named Pipes, which is disabled for
the server that I'm trying to connect to. I checked the Client Config
Protocols and TCP/IP (2) is listed before Named Pipes (3).
I know I can prefix the server name with TCP: to force it to use TCP/IP,
but I don't want to do that. How can I get OSQL to connect through TCP/IP
instead of Named Pipes? Again the client has SQL 2005 Developer and the
Server has SQL 2005 Standard
Thanks!Found out. There was an alias for this server in there that told it to use
NP. Now to find out why there was an alias in there. . . . .
"Nieves" <JuanN@.yahoo.com> wrote in message
news:%238m7S8yPHHA.2312@.TK2MSFTNGP04.phx.gbl...
> Hi,
> I'm having a small issue with OSQL. When I type "OSQL -S MYSERVER -E" ,
> it connects through TCP/IP, but on one client (that has DEVELOPER edition
> installed), it tries to connect through Named Pipes, which is disabled for
> the server that I'm trying to connect to. I checked the Client Config
> Protocols and TCP/IP (2) is listed before Named Pipes (3).
> I know I can prefix the server name with TCP: to force it to use TCP/IP,
> but I don't want to do that. How can I get OSQL to connect through TCP/IP
> instead of Named Pipes? Again the client has SQL 2005 Developer and the
> Server has SQL 2005 Standard
> Thanks!
>
Wednesday, March 7, 2012
osql -L
lists of servers using osql -L ?
Nick.
BOL says the -L option 'Lists the locally configured servers and the names
of the servers broadcasting on the network.'
So... it could be that they really are on different subnets and yuo don't
realize it. But 'locally configured' servers is the more likely answer.
-L will show all server aliases hat are defined on the client using the
Client Network Utility. You probably have different lists there...
Brian Moran
Principal Mentor
Solid Quality Learning
SQL Server MVP
http://www.solidqualitylearning.com
"Nick Stephens" <NickStephens@.discussions.microsoft.com> wrote in message
news:7C1AC5D3-F374-4BFA-B220-90D97DD253F4@.microsoft.com...
> Can anyone suggest why two client PCs on the same network report different
> lists of servers using osql -L ?
> Nick.
|||My colleague and I had also discussed the possibility of different subnets
being an issue, but didn't have the tehcnical knowledge to sound out our
ideas so we moved on and in fact checked out the configs via the Client
Network Utility.
The only difference that we found was a single alias on his machine whereas
on mine the list is empty and yet there are 49 servers to be found. Maybe
there's a different list of which I'm unaware ?
Inspired by a reply to a similar post I knocked up a quick VB6 app to use
DMO and list the servers. Unsurprisingly, I got exactly the same list as with
osql -L.
However, several entries in my list differ from that when we use my
colleague's machine.
Still, at your suggestion I'll take a closer look at the configs, Biran -
many thanks for your help.
Regards, Nick.
"Brian Moran" wrote:
>
> BOL says the -L option 'Lists the locally configured servers and the names
> of the servers broadcasting on the network.'
> So... it could be that they really are on different subnets and yuo don't
> realize it. But 'locally configured' servers is the more likely answer.
> -L will show all server aliases hat are defined on the client using the
> Client Network Utility. You probably have different lists there...
> --
> Brian Moran
> Principal Mentor
> Solid Quality Learning
> SQL Server MVP
> http://www.solidqualitylearning.com
>
> "Nick Stephens" <NickStephens@.discussions.microsoft.com> wrote in message
> news:7C1AC5D3-F374-4BFA-B220-90D97DD253F4@.microsoft.com...
>
>
|||Brian, further to my initial reply to your post, we have found that it is
indeed a subnet thang. Our machines are on different subnets.
Thanks again.
Regards, Nick.
"Brian Moran" wrote:
>
> BOL says the -L option 'Lists the locally configured servers and the names
> of the servers broadcasting on the network.'
> So... it could be that they really are on different subnets and yuo don't
> realize it. But 'locally configured' servers is the more likely answer.
> -L will show all server aliases hat are defined on the client using the
> Client Network Utility. You probably have different lists there...
> --
> Brian Moran
> Principal Mentor
> Solid Quality Learning
> SQL Server MVP
> http://www.solidqualitylearning.com
>
> "Nick Stephens" <NickStephens@.discussions.microsoft.com> wrote in message
> news:7C1AC5D3-F374-4BFA-B220-90D97DD253F4@.microsoft.com...
>
>
|||You can get different results at different times from the same PC as
well due to server responses not coming back in time. OSQL -L is based
on UDP network broadcasts. There are different factors that play into
what you get back for results. You can find the issues listed at:
http://www.sqldev.net/misc/ListSQLSvr.htm
-Sue
On Thu, 4 Nov 2004 08:13:03 -0800, "Nick Stephens"
<NickStephens@.discussions.microsoft.com> wrote:
[vbcol=seagreen]
>Brian, further to my initial reply to your post, we have found that it is
>indeed a subnet thang. Our machines are on different subnets.
>Thanks again.
>Regards, Nick.
>"Brian Moran" wrote:
|||Many thanks, Sue !
Nick.
"Sue Hoegemeier" wrote:
> You can get different results at different times from the same PC as
> well due to server responses not coming back in time. OSQL -L is based
> on UDP network broadcasts. There are different factors that play into
> what you get back for results. You can find the issues listed at:
> http://www.sqldev.net/misc/ListSQLSvr.htm
> -Sue
> On Thu, 4 Nov 2004 08:13:03 -0800, "Nick Stephens"
> <NickStephens@.discussions.microsoft.com> wrote:
>
>
Saturday, February 25, 2012
OSQL
BUT the SQL client is not installed on all PCs. How can I modify this to
run, or what must I do in order for this to work from PCs with no SQL client
'
osql -E -S EXCEDE\EXCEDE -d excede_Reporting -q"EXIT(exec isp_SetCrPw %1)"Hi,
you would probably have to write your own application for this using
e.g. .NET. That should be quite easy, as the only thing would be to
have a argument parser in place, the rest is only some simply
SqlConnection and SqlCommand.
HTH, Jens K. Suessmeyer.
--
http://www.sqlserver2005.de
--|||That would be beyond my current abilities. I can write some very simple
scripts, and I have a mild understanding of some VB and .NET, But to write
my own code. Well I have no idea where to start. If you would like to help
and get me started I would greatly appreciate and enjoy the experience.
Thanks.
==============================================="Jens" <Jens@.sqlserver2005.de> wrote in message
news:1171392808.470036.289720@.j27g2000cwj.googlegroups.com...
> Hi,
> you would probably have to write your own application for this using
> e.g. .NET. That should be quite easy, as the only thing would be to
> have a argument parser in place, the rest is only some simply
> SqlConnection and SqlCommand.
>
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>|||Lets take that offline and write me an Email.|||WANNABE;7269311 Wrote:
> That would be beyond my current abilities. I can write some very
> simple
> scripts, and I have a mild understanding of some VB and .NET, But to
> write
> my own code. Well I have no idea where to start. If you would like to
> help
> and get me started I would greatly appreciate and enjoy the
> experience.
> Thanks.
> ===============================================> "Jens" <Jens@.sqlserver2005.de> wrote in message
> news:1171392808.470036.289720@.j27g2000cwj.googlegroups.com...
> > Hi,
> >
> > you would probably have to write your own application for this using
> > e.g. .NET. That should be quite easy, as the only thing would be to
> > have a argument parser in place, the rest is only some simply
> > SqlConnection and SqlCommand.
> >
> >
> > HTH, Jens K. Suessmeyer.
> >
> > --
> > http://www.sqlserver2005.de
> > --
> >
I have written an OSQL like replacement in C#/.Net 2.0. I am
having a wee bit of an issue though. If the SQL file to be run
has dynamic SQL in it (building SQL strings and then executing
them) then the command will fail - always. I think it has
something to do with the nesting of the quotes. Got any ideas
on what would be causing something like this?
Thanks
escher4096
OSQL
BUT the SQL client is not installed on all PCs. How can I modify this to
run, or what must I do in order for this to work from PCs with no SQL client
?
osql -E -S EXCEDE\EXCEDE -d excede_Reporting -q"EXIT(exec isp_SetCrPw %1)"
Hi,
you would probably have to write your own application for this using
e.g. .NET. That should be quite easy, as the only thing would be to
have a argument parser in place, the rest is only some simply
SqlConnection and SqlCommand.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
|||That would be beyond my current abilities. I can write some very simple
scripts, and I have a mild understanding of some VB and .NET, But to write
my own code. Well I have no idea where to start. If you would like to help
and get me started I would greatly appreciate and enjoy the experience.
Thanks.
===============================================
"Jens" <Jens@.sqlserver2005.de> wrote in message
news:1171392808.470036.289720@.j27g2000cwj.googlegr oups.com...
> Hi,
> you would probably have to write your own application for this using
> e.g. .NET. That should be quite easy, as the only thing would be to
> have a argument parser in place, the rest is only some simply
> SqlConnection and SqlCommand.
>
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>
|||Lets take that offline and write me an Email.
|||
Quote:
Originally Posted by WANNABE
That would be beyond my current abilities. I can write some very simple
scripts, and I have a mild understanding of some VB and .NET, But to write
my own code. Well I have no idea where to start. If you would like to help
and get me started I would greatly appreciate and enjoy the experience.
Thanks.
===============================================
"Jens" <Jens@.sqlserver2005.de> wrote in message
news:1171392808.470036.289720@.j27g2000cwj.googlegr oups.com...
> Hi,
> you would probably have to write your own application for this using
> e.g. .NET. That should be quite easy, as the only thing would be to
> have a argument parser in place, the rest is only some simply
> SqlConnection and SqlCommand.
>
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>
having a wee bit of an issue though. If the SQL file to be run
has dynamic SQL in it (building SQL strings and then executing
them) then the command will fail - always. I think it has
something to do with the nesting of the quotes. Got any ideas
on what would be causing something like this?
Thanks
OSQL
BUT the SQL client is not installed on all PCs. How can I modify this to
run, or what must I do in order for this to work from PCs with no SQL client
'
osql -E -S EXCEDE\EXCEDE -d excede_Reporting -q"EXIT(exec isp_SetCrPw %1)"Hi,
you would probably have to write your own application for this using
e.g. .NET. That should be quite easy, as the only thing would be to
have a argument parser in place, the rest is only some simply
SqlConnection and SqlCommand.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
--|||That would be beyond my current abilities. I can write some very simple
scripts, and I have a mild understanding of some VB and .NET, But to write
my own code. Well I have no idea where to start. If you would like to help
and get me started I would greatly appreciate and enjoy the experience.
Thanks.
========================================
=======
"Jens" <Jens@.sqlserver2005.de> wrote in message
news:1171392808.470036.289720@.j27g2000cwj.googlegroups.com...
> Hi,
> you would probably have to write your own application for this using
> e.g. .NET. That should be quite easy, as the only thing would be to
> have a argument parser in place, the rest is only some simply
> SqlConnection and SqlCommand.
>
> HTH, Jens K. Suessmeyer.
> --
> http://www.sqlserver2005.de
> --
>|||Lets take that offline and write me an Email.|||WANNABE;7269311 Wrote:[vbcol=seagreen]
> That would be beyond my current abilities. I can write some very
> simple
> scripts, and I have a mild understanding of some VB and .NET, But to
> write
> my own code. Well I have no idea where to start. If you would like to
> help
> and get me started I would greatly appreciate and enjoy the
> experience.
> Thanks.
> ========================================
=======
> "Jens" <Jens@.sqlserver2005.de> wrote in message
> news:1171392808.470036.289720@.j27g2000cwj.googlegroups.com...
I have written an OSQL like replacement in C#/.Net 2.0. I am
having a wee bit of an issue though. If the SQL file to be run
has dynamic SQL in it (building SQL strings and then executing
them) then the command will fail - always. I think it has
something to do with the nesting of the quotes. Got any ideas
on what would be causing something like this?
Thanks
escher4096