|
oooh it was my fault i was posting a ping when i was testing
a shared connection and posted the tnsnames.ora when i was testing a dedicated connection.....basicly i was trying all the possible ways to connect and it generate same error
man thank you realy much for your time!! , its faster than msn messenger :P
*MODIFY* : oh i was trying this testservice tool in the oracle net manager i managed to connect to my server from this tool using the
"oracleserver" service that i have created ,
maybe that info helps
-- modified at 10:27 Sunday 19th August, 2007
Net
|
|
|
|
|
ok.. the ping said "using tnsnames to resolve blah blah blah..." as far as i know these tools do not look at the sqlnet.ora. did you configure the naming methods (second option in the net configuration assistant)? default is only local. you must tell it to use tnsnames also.
|
|
|
|
|
yea i did set the sqlnet.ora currently it looks like this:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
*MODIFY*:OK i FOUND A TEMPORARY SOLUTION!
i found out that you can set
Data Source="[hostname]/[servicename]"....
so i changed the code to DataSource="192.168.2.100/xe"
and i managed to connect via lan........ but still its anoying that i cant make that damn alias to work
THANKS FOR THE HELP!!!!
if you got any other ideas how to make it work i'll be glad to hear
thanks again
*
-- modified at 11:14 Sunday 19th August, 2007
-- modified at 11:19 Sunday 19th August, 2007
Net
|
|
|
|
|
how can i find which day of week today is.
i.e if today is Sunday then it should return 1
the problem is if it returns day of week in another language
for e.g in German they call Sunday as sonntag.
|
|
|
|
|
As far as I know all calenders in System.Globalization returns DayOfWeek property as a DayOfWeek Enumaration So no language would affect it.
and casting the DayOfWeek to integer gives something like this
Sunday=0,Monday=1,...,Saturday=6
int dayNum=(int)DateTime.Now.DayOfWeek+1;
good luck
|
|
|
|
|
I have a C# service that communicates to a USB flash drive. Since my program is smart enough to know when the drive is plugged in and when it's not, I don't need to have XP open the "Autorun" dialog window asking me what application to run when the drive is plugged in.
Can I somehow kill this window from my C# app? I would like to do it this way because if my application is NOT running, I DO want the XP autorun dialog to display giving users the option to install the application.
Any advice would be appreciated!
Thanks,
Barry
Barry Etter
|
|
|
|
|
You can disable it through registry
const int DISABLEALL = 0xff;
const int DISABLEALLEXECPTCDROMS = 0xdd;
const int DISABLECDROM = 0xb1;
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software").OpenSubKey("Microsoft").OpenSubKey("Windows").OpenSubKey("CurrentVersion").OpenSubKey("Policies").OpenSubKey("Explorer", true);
key.SetValue("NoDriveTypeAutoRun", DISABLEALLEXECPTCDROMS);
}
code for disable AutoRun for all devices is 0xff
and disable AutoRun for all devices except CD-Roms is 0xdd
disable just for CD-Roms is 0xb1
and the changes would be applied after restart
Good Luck
|
|
|
|
|
Good evening everyone,
As the subject says, I wonder if there's a possibility to add a column to a datagrid control that calculates (count, sum, or average) multiple columns or rows..
Please advise
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
You have complete control over the datagrid, so yes, there is a way to add a totals column.
One way would be to add it to your query.
SELECT field1, field2, SUM(field3) FROM...
Another way would be to handle the databinding events and populate the column at runtime.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote:
SELECT field1, field2, SUM(field3) FROM...
Call me an idiot but tell me this's not creating me a totals row (not column)
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
If you had a table with this structure
col1 col2
1 2
10 20
20 30
then SELECT col1, col2, SUM(col1,col2)...
would produce this:
1,2,3
10,20,30
20,30,50
Of course this only gives you the totals for the rows selected. If you want some other sort of total, then adjust the SQL statement, maybe MAX, or AVE, or whatever is needed.
only two letters away from being an asset
|
|
|
|
|
If you are using a DataSet as data source then you can add an expression column to it.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
hi all,
iam working on directx.capture class library, iam not able to run the sample code included in the zip file. i get the above error at
private Filters filters = new Filters();
please somebody help me with this. iam using vs2005 express edition
Thanks in advance
|
|
|
|
|
Hi
I have this Sql Authentication connection string which has a username and password.
I added this connection string to Application Settings and the corresponding app.config item
was added to my project automatically. But now that i want to access the app.config file
in my codes,ConfigurationSection,ConfigurationManager and other related classes,properties and methods
are not available.I read many articles on this subject but i havent been able to do the encryption so far.
The other question is wether the encryption needs to be done once or should it be done every time
the application runs? Is it be possible to set this encrypted connection as a SqlConnection's connection
string or the assignment must be done prior to encryption?
please help!
thanks
|
|
|
|
|
try this
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2010907&SiteID=1&pageid=0#2010907
|
|
|
|
|
I have a WinForms MDI app that has a docked navigation panel at the left edge. However, when I create MDI child windows, the main window seems to ignore the presence of the navigation panel and uses its entire client area to layout the child windows. Is it possible to override the MDI container's layout logic and reduce its client area by the space occupied by the navigation panel?
I tried doing this in the main window's Load handler, but it didn't seem to have any effect. (I understand that this would only set the initial client area, which may need to be recomputed in a SizeChanged handler).
private void MainFrm_Load
(object sender,
EventArgs e)
{
NavigatorFrm nf = new NavigatorFrm();
nf.MdiParent = this;
nf.Dock = DockStyle.Left;
nf.Show();
this.ClientSize = new Size (this.ClientSize.Width - nf.Width, this.ClientSize.Height);
}
Thanks,
/ravi
|
|
|
|
|
If you get an answer to this, I'd be interested to find out how to do it.
"It was the day before today.... I remember it like it was yesterday."
-Moleman
|
|
|
|
|
If still anyone is looking for this, just override the control's DisplayRectangle property. Just mentioned as I was looking for the same till a few days ago.
|
|
|
|
|
Hi,
I want to display a description of the item being hovered over, how would i do this please.
|
|
|
|
|
Use a tooltip.
"It was the day before today.... I remember it like it was yesterday."
-Moleman
|
|
|
|
|
Or a balloon
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
That is a nice article you linked to. I am wondering why it was voted down a bit... It may be an older article from 2002, but the information looks still useful.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello,
Has anyone got an upto date and working version of a gamequery library?
i have attempted to fix the one located at http://www.codeproject.com/csharp/gameserverinfo.asp?df=100&forumid=128181&exp=1&mpp=50&select=2186981&msg=2186981
However the skill needed is beyond me, and i have recived no e-mail from the original writer.
So anyone able to assist me?
Cheers
|
|
|
|
|
hi,
I want to display the time and date in a textbox using c# where i should put the formula and how
regards
|
|
|
|
|
Use System.DateTime.Now
textbox.Text=System.DateTime.Now.ToString();
at page load or any buttion's click event wherever you want.
Naresh Patel
|
|
|
|