|
Would it be possible to rearchitect this slightly? For instance, you may just want to trigger the task to run on the remote server via DTS somehow.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Are you suggesting doing something like a "PULL" of the data from the main server?
Doing it my way means I have central control of the data distribution.
I know how to set a stored procedure's time-out when calling it from, say, VB code, but I don't know how to do it within another stored procedure.
|
|
|
|
|
Without knowing what your architecture/problem is then I can't say. I'm just suggesting that you might be able to use different ways to do this.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Ok, basically I have a main server and many "child servers" connected via VPN.
On the main server there exists a table which has to be replicated daily to all the child servers to keep them synchronized.
SQL's replication is not an option here for many reason I'm not going into right now.
But when I execute one SP within another, a time-out occurs (I think) on when updating some child servers. If I execute the SP seperately (not from another SP) it works fine, even though it runs for more than 3minutes.
|
|
|
|
|
Hi,
I just wanted to know if there are any 3rd party tools available that provide the user with an interface similar to that of SQL Builder which can be used with a windows application to allow the end user to design his own reports.
Thanks
|
|
|
|
|
Never give an end-user that kind of control/options, they'll find some way of mocking up.
I had a quick look and it seems Oppen Office has something[^] similar to what you described.
Sorry if it's not spot on, I don't know of any tool that is simple enough for end users to use.
|
|
|
|
|
hi all
i want to create query which gives me
1) all Table name of the selected Database
2) all fields name of selected Table
thanks in advance
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
Assuming you are talking about SQL Server
The Stifler wrote: 1) all Table name of the selected Database
SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE'
The Stifler wrote: 2) all fields name of selected Table
SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'MyTableName'
|
|
|
|
|
Thanks Colin
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
|
hi thanks again for last solution can u please help me
1) How to get all databases name
3) How to get all databases name from selected server .
Thanks in advance
The Stifler
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
The Stifler wrote: 1) How to get all databases name
See sys.databases[^]
e.g. SELECT * FROM sys.databases
The Stifler wrote: 3) How to get all databases name from selected server .
Question 2 appears to be missing.
You must log on to the server in order to enumerate the databases on it.
|
|
|
|
|
Hi
I have been trying to connect to a sql server database that is on my machine. I am using Visual Studio 2005. Every time I try connect I get an error message that states that the Login was invalid. I am getting this error msg.
System.Data.SqlClient.SqlException was unhandled
Class=14
ErrorCode=-2146232060
LineNumber=0
Message="Login failed for user 'sa'."
Number=18456
Procedure=""
Server="chiko-shumba"
Source=".Net SqlClient Data Provider"
State=1
This is connection string that I am using.
cstring = "Persist Security Info=False;User ID=sa;Password=bobsurunlce;Initial Catalog=ymca_data;Server= chiko-shumba"
I created my database using sql server 2000, and I assigned a usere name and password, when I installed sql server. What could I Have done wrong, and what can I do to get round this?
thanks in advance
twsted F8
|
|
|
|
|
twsted f8 wrote: Connecting to SQL express
twsted f8 wrote: I created my database using sql server 2000, and I assigned a usere name and password, when I installed sql server. What could I Have done wrong, and what can I do to get round this?
Okay. So, you created the database in SQL Server 2000, but have since moved it to SQL Server 2005 Express (the is no express edition for SQL Server 2000).
The sa password you set in SQL Server 2000 won't apply in SQL Server 2005 as the login details are managed by the server not the individual databases. So you have to use what ever credentials were set up when you installed SQL Server 2005 Express Edition.
It's been a while since I tried to install that edition but as I recall it doesn't ask you, it just sets up trusted connections automatically. I may be wrong so you might want to check.
|
|
|
|
|
With SQL express you are going to have to allow access via TCP/IP from the SQL Server Configuration Manager.
|
|
|
|
|
Hi,
I have the foll prob.. I need to create a report which will have an a total at the end of each page followed by a grand total at th end of the report. There are no groupings in the data. i am able to achieve individual totals by placing the sum in the page footer but the prob is that on the last page the page total appears after the grand total... any help appreciated
|
|
|
|
|
Haven't tried this myself, but you should be able to toggle the visibility of the page total textbox based on the result of an expression that checks whether the current page number is equal to the total number of pages in the report. If they are equal, hide the textbox. If they are not, show it.
Paul
|
|
|
|
|
Hi,
Thanks for the reply...i'm able to do it like that the prob is that if i use that method the i need to keep another hidden field within the report so that i can get the total sum for the column...i was wondering if i could avoid that...bcos in case i have to take sum of more fields then the number of hidden fields will increase
|
|
|
|
|
Hi,
I am using MSSQL 2000 server.
I need to access tables in the remote server from my local server query analyser.
I know that server's name, its user name, password....
My need is from my local server query analyzer, i need to perform select or update or delete operation.
is it posiible??
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Yes. Establish a connection to your remote SQL database, and run your queries.
Paul
|
|
|
|
|
Thank you for your reply.
My requirement is I have a User_log table in my Remote DBserver "RDB" and in my Local DBSERVER "LDB" .And databse name is TEST in both server.
I need to insert (or copy) the content from RDB.TEST.User_log to LDB.TEST.User_log , after copying it i need to DELETE the contetnt of RDB.TEST.User_log
I need to perform this operation from my "LDB"
can you help me??
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
If the databases are on different servers, you could define a linked server on one of your servers and then write an INSERT query that copies the data from one server to the other.
I don't really have any experience of defining a linked server myself, but SQL BOL will explain how to do it.
Alternatively, you could use DTS/SSIS to export data from one database and load it into your other database.
Regards
Paul
|
|
|
|
|
Here is the current problem. EasyLanguage is a language developed for programming under TradeStation, which is designed specifically for professional traders.
I have an indicator that is programmed in EasyLanguage that references an Entitlement DLL file. The variables are listed in the Easy Language code (pasted below) and what happens is that each customer is assigned a unique customerid in TradeStation (EasyLanguage). When they insert the indicator, the indicator calls the entitlement.dll. The DLL goes to the specified website and verifies that the customer is authorized to use the indicator. If yes then the indicator is displayed. If not then an error message is generated that states the user is unauthorized to use the indicator.
f you can recreate the DLL that would be great, otherwise I need to recreate the PHP portion.
EasyLanguage Code:
DefineDLLFunc:
"entitlements.dll",
INT,
"GetEntitlements",
LPSTR,
INT,
LPSTR,
LPSTR,
LPSTR,
LPSTR,
LPSTR,
BOOL;
Variables:
EntitlementName("Test"),
HostIP("207.126.53.83 "),
HostPort(80),
HostPath("www.tradershelpdesk.com/entitlement/BSGTS2.php "),
HostPassword (""),
IsEntitled(0),
pErrorMessage(""),
theErrorMessage("Warning ! You are not entitled to use this tool!" + "For test");
if (currentbar=1) then
begin
IsEntitled = GetEntitlements((LPSTR) HostIP,
(INT) HostPort,
(LPSTR) HostPath,
(LPSTR) HostPassword,
(LPSTR) numtostr(customerid,0),
(LPSTR)EntitlementName,
(LPSTR) pErrorMessage,
(BOOL)True);
end;
If(IsEntitled<=0) Then RaiseRunTimeError(theErrorMessage);
inputs:
Price( Close ),
Length( 14 ),
HiAlert( 0 ), { pass in 10 for +10% }
LoAlert( 0 ), { pass in -10 for -10% }
UpColor( Cyan ),
DnColor( Red ) ;
variables:
PctChg( 0 ) ;
PctChg = 100 * PercentChange( Price, Length ) ;
Plot1( PctChg, "%Chg" ) ;
Plot2( HiAlert, "HiAlert" ) ;
Plot3( LoAlert, "LoAlert" ) ;
{ Color criteria }
if PctChg > HiAlert then
SetPlotColor( 1, UpColor )
else if PctChg < LoAlert then
SetPlotColor( 1, DnColor ) ;
{ Alert criteria }
if PctChg crosses over HiAlert then
Alert( "Bullish alert" )
else if PctChg crosses under LoAlert then
Alert( "Bearish alert" ) ;
CONTACT 9884112963
|
|
|
|
|
And what exactly is the problem here? You want us to write this code for you? I'm sorry, but this isn't RentACoder.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O'Hanlon wrote: I'm sorry, but this isn't RentACoder.
Seems like sometimes people think that
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|