¡@

Home 

c# Programming Glossary: server

How to get my own IP address in C#?

http://stackoverflow.com/questions/1069103/how-to-get-my-own-ip-address-in-c

to get my own IP address in C# I am running a server and I want to display my own IP address. What is the syntax..

What are the pros and cons to keeping SQL in Stored Procs versus Code

http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code

for Stored Procs Performance Security c# sql sql server stored procedures share improve this question I am not a.. functions than SQL into... blocks of SQL You have 4 webservers and a bunch of windows apps which use the same SQL code Now.. change the proc in 1 place or push the code to all the webservers reinstall all the desktop apps clickonce might help on all..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

demonstrates a nested second connection to a second SQL server actually which will escalate to DTC. We are not doing this in.. not doing this in our code we're not using different SQL servers nor different connection strings nor do we have nested secondary..

Tips for optimizing C#/.NET programs [closed]

http://stackoverflow.com/questions/2473666/tips-for-optimizing-c-net-programs

use to optimize their vbscript their jscript their active server pages their VB their C# code. I always resist this. Emphasizing..

ASP.NET MVC $.post call returning string…need help with format for jqGrid

http://stackoverflow.com/questions/4101116/asp-net-mvc-post-call-returning-string-need-help-with-format-for-jqgrid

select If for you is easer to return JSON results from the server your custom function buildSelect will help. As the parameter.. help. As the parameter it receive the data send from the server and it should return the string select option ... option select..

How do parameterized queries help against SQL injection?

http://stackoverflow.com/questions/5468425/how-do-parameterized-queries-help-against-sql-injection

to stop insertion of illegal characters. c# .net sql sql server 2005 parameterized query share improve this question Parameterized..

Using .NET, how can you find the mime type of a file based on the file signature not the extension

http://stackoverflow.com/questions/58510/using-net-how-can-you-find-the-mime-type-of-a-file-based-on-the-file-signature

binary data. The final result depends on a combination of server supplied MIME type headers file extension and or the data itself...

How do I convert Word files to PDF programmatically?

http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically

directory DirectoryInfo dirInfo new DirectoryInfo @ server folder FileInfo wordFiles dirInfo.GetFiles .doc word.Visible..

Random row from Linq to Sql

http://stackoverflow.com/questions/648196/random-row-from-linq-to-sql

for huge tables it will have a performance impact at the server and it will be more efficient to find the number of rows Count..

Sending email through Gmail SMTP server with C#

http://stackoverflow.com/questions/704636/sending-email-through-gmail-smtp-server-with-c-sharp

email through Gmail SMTP server with C# For some reason the accepted answer or any others don't.. a SmtpException on Send message . The message is The SMTP server requires a secure connection or the client was not authenticated... secure connection or the client was not authenticated. The server response was 5.5.1 Authentication Required. Learn more at seriously..

How to get a user's client IP address in ASP.NET?

http://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net

instead of the IP address Edit The address you see on the server shouldn't be the ISP's address as you say that would be a huge.. the web from the same IP address. When you are writing server code you can never be sure what the IP address you see is refering..

jQuery UI Dialog with ASP.NET button postback

http://stackoverflow.com/questions/757232/jquery-ui-dialog-with-asp-net-button-postback

text align left display none asp Button ID btnButton runat server Text Button onclick btnButton_Click div But the btnButton_Click..

What is the best choice for .net inter-process communication?

http://stackoverflow.com/questions/84855/what-is-the-best-choice-for-net-inter-process-communication

which one is a bit faster. WCF though has much better server throughput than .NET Remoting. If I would start completely new..

ExecuteReader requires an open and available Connection. The connection's current state is Connecting

http://stackoverflow.com/questions/9705637/executereader-requires-an-open-and-available-connection-the-connections-curren

state is Connecting. The site works fine on my localhost server. This is the rough code. public Promotion retrievePromotion.. public static SqlConnection conn null c# .net sql server ado.net database connection share improve this question Sorry..

How to Query an NTP Server using C#?

http://stackoverflow.com/questions/1193955/how-to-query-an-ntp-server-using-c

to Query an NTP Server using C# All I need is a way to query an NTP Server using C#.. NTP Server using C# All I need is a way to query an NTP Server using C# to get the Date Time of the NTP Server returned as.. an NTP Server using C# to get the Date Time of the NTP Server returned as either a string or as a DateTime . How is this possibly..

How to execute a stored procedure within C# program

http://stackoverflow.com/questions/1260952/how-to-execute-a-stored-procedure-within-c-sharp-program

I have written the following stored procedure in a SqlServer query window and saved it as stored1 use master go create procedure.. 10 Most Expensive Products n try conn new SqlConnection Server local DataBase master Integrated Security SSPI conn.Open SqlCommand..

What are the pros and cons to keeping SQL in Stored Procs versus Code

http://stackoverflow.com/questions/15142/what-are-the-pros-and-cons-to-keeping-sql-in-stored-procs-versus-code

by building the SQL inline in C# and calling to the SQL Server DB. So I'm trying to establish which for this particular project..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

Update 2 Re investigated personally everyone's SQL Server versions Dev 3 actually has SQL2008 and Dev 4 is actually SQL2005... to a different 'durable resource' ie a different SQL Server it will immediately escalate to DTC SQL2005 Does not allow multiple..

Transactions in .net

http://stackoverflow.com/questions/224689/transactions-in-net

All in all a very very useful object. Some caveats On SQL Server 2000 a TransactionScope will go to DTC immediately this is fixed.. will go to DTC immediately this is fixed in SQL Server 2005 and above it can use the LTM much less overhead until you..

How do I save a stream to a file?

http://stackoverflow.com/questions/411592/how-do-i-save-a-stream-to-a-file

filename . In the future I may want to store this to SQL Server. I have the encoding type also which I will need if I store.. encoding type also which I will need if I store it to SQL Server correct c# .net sql server stream share improve this question..

File Upload ASP.NET MVC 3.0

http://stackoverflow.com/questions/5193842/file-upload-asp-net-mvc-3-0

improve this question You don't use a file input control. Server side controls are not used in ASP.NET MVC. Checkout the following.. inside ~ App_Data uploads folder var path Path.Combine Server.MapPath ~ App_Data uploads fileName file.SaveAs path redirect..

How to get last inserted id?

http://stackoverflow.com/questions/5228780/how-to-get-last-inserted-id

all one line split for clarity here to this for SQL Server 2005 INSERT INTO aspnet_GameProfiles UserId GameId OUTPUT INSERTED.ID.. GameId OUTPUT INSERTED.ID VALUES @UserId @GameId ...or SQL Server 2000 INSERT INTO aspnet_GameProfiles UserId GameId VALUES @UserId..

Random row from Linq to Sql

http://stackoverflow.com/questions/648196/random-row-from-linq-to-sql

by ctx.Random this will do a random ordering at the SQL Server courtesy of NEWID . i.e. var cust from row in ctx.Customers..

How to execute an .SQL script file using c#

http://stackoverflow.com/questions/650098/how-to-execute-an-sql-script-file-using-c-sharp

using System.Web.UI.WebControls using Microsoft.SqlServer.Management.Smo using Microsoft.SqlServer.Management.Common using.. Microsoft.SqlServer.Management.Smo using Microsoft.SqlServer.Management.Common using System.IO using System.Data.SqlClient.. SqlConnection conn new SqlConnection sqlConnectionString Server server new Server new ServerConnection conn server.ConnectionContext.ExecuteNonQuery..

Read MS Exchange email in C#

http://stackoverflow.com/questions/652549/read-ms-exchange-email-in-c-sharp

and read email from a particular mailbox on a MS Exchange Server internal to my company . I also need to be able to read the..

“The Controls collection cannot be modified because the control contains code blocks”

http://stackoverflow.com/questions/778952/the-controls-collection-cannot-be-modified-because-the-control-contains-code-bl

SliderExtender to the user control I get this # @# error Server Error in ' ' Application. The Controls collection cannot be..

Using C#, how does one figure out what process locked a file?

http://stackoverflow.com/questions/860656/using-c-how-does-one-figure-out-what-process-locked-a-file

a little class to do it. It works on Windows 7 and Windows Server 2003 the only two I've tested on so far and uses threads to..

Create “Hello Wold” WebSocket example

http://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example

ws.send Hello World I WANT TO SEND THIS MESSAGE TO THE SERVER alert Message sent ws.onmessage function evt alert About..

CrystalReport Load report failed

http://stackoverflow.com/questions/1184309/crystalreport-load-report-failed

SOFTWARE CRYSTAL DECISIONS 10.0 REPORT APPLICATION SERVER SERVER PrintJobLimit It normally is defaulted to 75. For debugging.. SOFTWARE CRYSTAL DECISIONS 10.0 REPORT APPLICATION SERVER SERVER PrintJobLimit It normally is defaulted to 75. For debugging..

Programmatically “hello world” default SERVER-side printer in ASP.NET MVC

http://stackoverflow.com/questions/12229823/programmatically-hello-world-default-server-side-printer-in-asp-net-mvc

&ldquo hello world&rdquo default SERVER side printer in ASP.NET MVC I have the printer installed and..

Parsing tnsnames.ora in Visual C# 2008

http://stackoverflow.com/questions/1243022/parsing-tnsnames-ora-in-visual-c-sharp-2008

ADDRESS PROTOCOL TCP HOST shaman PORT 1521 CONNECT_DATA SERVER DEDICATED SERVICE_NAME orcl BILL DESCRIPTION ADDRESS PROTOCOL.. PROTOCOL TCP HOST 192.168.10.58 PORT 1522 CONNECT_DATA SERVER DEDICATED SERVICE_NAME orcl How can I parse this file to get..

WCF contract mismatch problem

http://stackoverflow.com/questions/1264431/wcf-contract-mismatch-problem

add this under configuration in your web.config ON THE SERVER . Create the log directory if it doesn't exist. system.diagnostics..

Embedded Web Server in .NET

http://stackoverflow.com/questions/155161/embedded-web-server-in-net

default. Here are some links to get you started. XML RPC SERVER USING HTTPLISTENER HttpListener For Dummies As for the PHP support..

Could not create SSL/TLS secure channel - Could the problem be a proxy server?

http://stackoverflow.com/questions/1600743/could-not-create-ssl-tls-secure-channel-could-the-problem-be-a-proxy-server

CLIENT is not signed by an authority that the PROXY or the SERVER trusts Oops I forgot to export the private key when I created..

TransactionScope automatically escalating to MSDTC on some machines?

http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines

other half must have it enabled or they get the MSDTC on SERVER is unavailable error message. It's really got me scratching.. prep the command connection.Open Throws MSDTC on SERVER is unavailable on some... gets here on only half of the developer..

Pros and Cons of using SqlCommand Prepare in C#?

http://stackoverflow.com/questions/2449827/pros-and-cons-of-using-sqlcommand-prepare-in-c

SQL call whether its' a SELECT UPDATE or INSERT on SQL SERVER 2005 2008 and I pass parameters to it. But is it really so Should..

How to solve “unable to switch the encoding” error when inserting XML into SQL Server

http://stackoverflow.com/questions/3760788/how-to-solve-unable-to-switch-the-encoding-error-when-inserting-xml-into-sql-s

into SQL Server I'm trying to insert into XML column SQL SERVER 2008 R2 but the server's complaining System.Data.SqlClient.SqlException..

C# WebClient disable cache

http://stackoverflow.com/questions/3812089/c-sharp-webclient-disable-cache

do you get when you alter some random seed parameter Maybe SERVER caches the file if the log shows that request is really triggered..

linq to entities case sensitive comparison

http://stackoverflow.com/questions/3843060/linq-to-entities-case-sensitive-comparison

on the Sql Server Collates take a a look at SQL SERVER Collate Case Sensitive SQL Query Search Client side solution..

Best way to update LINQ to SQL classes after database schema change

http://stackoverflow.com/questions/40022/best-way-to-update-linq-to-sql-classes-after-database-schema-change

Microsoft SDKs Windows v6.0A Bin x64 sqlmetal.exe server SERVER database database code path Solution DataContextProject dbContext.cs..