Home directory for Malawi's wwwroot
Duncan Ewan
2021-02-19 3e758c29e0fde36fc088efcfc88f9a3014432b64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#config errmsg="" --><!-- saved from url=(0022)http://help.adobe.com/ -->
<html lang="en-us">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="lang" content="en-us" />
    <meta name="area" content="livedocs" />
    <title>Adobe&#160;ColdFusion&#160;10 * Connecting to Microsoft SQL Server</title>
    <link rel="shortcut icon" href="images/ColdFusionLinkIndicator.png" />
    <meta name="book" content="Configuring and Administering ColdFusion 10" />
    <meta name="product" content="ColdFusion" />
    <meta name="keywords" content="" /><!--<PageMap><DataObject type="document"><Attribute name="product" value="ColdFusion"></Attribute><Attribute name="book" value="Configuring and Administering ColdFusion 10"></Attribute><Attribute name="keywords" value=""></Attribute></DataObject></PageMap>-->
    
    <script type="text/javascript" language="Javascript" charset="UTF-8"><!--[CDATA[
        var currentTreeNode = "WSc3ff6d0ea77859461172e0811cbf364104-7fe5.html";
    document.cookie = "topicId=" + "WSc3ff6d0ea77859461172e0811cbf364104-7fe5.html";
// ]]--></script>
<script src="terms.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="help.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script>  <script src="utilities.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="event.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="treeview.js" type="text/javascript" language="Javascript" charset="UTF-8">...</script> <script src="toc.js" language="Javascript" type="text/javascript" charset="UTF-8">..</script> <script src="swfobject.js" language="Javascript" type="text/javascript" charset="UTF-8">..</script>  <script src="booklist.js" language="Javascript" type="text/javascript" charset="UTF-8">..</script>
<script type="text/javascript">
<!--[CDATA[
var topictype = "topic";
var headId = document.getElementsByTagName("head")[0];         
if (use_ie_6_behavior) {
  var linkId = document.createElement("link");
  linkId.href = "content-ie6.css";
  linkId.rel = "stylesheet";
  linkId.type = "text/css";
  headId.appendChild(linkId);
}
function initRoboHelpDOM() {
  if (use_chm_behavior) {
    hideElement("search");
  }
  if (use_robohelp_behavior) {
    hideElement("search");
    hideElement("productmenu");
    //hideElement("notyourversion");
  }
  if(!use_chc_behavior) {
    //document.getElementById("notyourversion").style.display = "inline";;
  }
}
var dirname = location.pathname.match( /.*\// );    
function setSearchUserPref(){
  if ( document.cookie.indexOf( "ah_searchpref" ) > -1 ) {
    if ( document.cookie.indexOf( dirname ) > 0 ) {
      document.search.gsa.checked = true ;
    }else{
      document.search.gsa.checked = false ;            
    }
  }
}
YAHOO.util.Event.onDOMReady(initRoboHelpDOM);
YAHOO.util.Event.onDOMReady(setSearchUserPref);
// ]]-->
</script>
<!--#include virtual="/ssi/globalheader.ssi" -->
<!--#include virtual="/en_US/ssi/localheader.ssi" -->
<!--#include virtual="header.ssi" -->
    <link rel="stylesheet" type="text/css" href="tree.css" />
    <link rel="stylesheet" type="text/css" href="content.css" />
    <link rel="stylesheet" type="text/css" href="localeSpecific.css" />
  </head>
  <body id="content_body" onload="window.focus();">
    <a name="top" shape="rect"><!--LeaveCommentHere--></a>
    
    <div id="mnemonic">
      <div class="ColdFusion"><div class="banner"><a href="WSf01dbd23413dda0e51f089d212047ee7a02-8000.html">Adobe&#160;ColdFusion&#160;10</a></div></div>
    </div>
    
    <div id="searchbar">
<table id="searchbartable">
<tr>
<td colspan="2">
      <div id="pdf"><img src="images/PDF.gif" width="16" height="16" hspace="10" />&#160;
           <a title="View Help PDF" href="http://help.adobe.com/en_US/ColdFusion/10.0/Admin/coldfusion_10_admin.pdf">View Help PDF (adobe.com)</a></div>
</td>
</tr>
</table>
    </div>
 
<!-- BEGIN SEARCH CONTENT -->
<form id="search" name="search" action="search.html" target="_self">
<script type="text/javascript">
<!--[CDATA[
if ( !use_chc_behavior ){
    if (typeof(terms_AHV_SEARCH_CONSTRAINT) != "undefined" && 
        terms_AHV_SEARCH_CONSTRAINT.length > 0 && 
        document.location.href.indexOf(".adobe.com") > 0){
        if ( typeof(terms_SEARCH_THIS_HELP_ONLY) != "undefined" && terms_SEARCH_THIS_HELP_ONLY == "ON" ) {
            document.write('<div id="searchscope"> \
                <input onchange="setAHSearchPref();" \
                class="gsa" \
                name="gsa" \
                id="gsa" \
                type="checkbox" \
                checked="checked" \
                value="1" ><\/input>'); 
                
        // Leave the "Search this help system only" checkbox unckecked
        }else{    
            document.write('<div id="searchscope"> \
                <input onchange="setAHSearchPref();" \
                class="gsa" \
                name="gsa" \
                id="gsa" \
                type="checkbox" \
                value="1" ><\/input>'); 
        }
        document.write('<span class="gsalabel">' + terms_AHV_SEARCH_CONSTRAINT + '<\/span><\/div>'); 
    }
    document.write('<input class="searchinput" \
        name="q" \
        id="q" \
        type="text" \
        maxlength="256" \
        value="' + terms_AHV_SEARCH_BUTTON + '" \
        onclick="clearSearch()"><\/input><input \
        type="button" \
        name="searchbutton" \
        class="searchbutton" \
        onclick="submit()"><\/input>'); 
 
/* 
 * Start Functions 
 */
function clearSearch(){
    if (document.search.q.value == terms_AHV_SEARCH_BUTTON){document.search.q.value = ""}; 
}
 
// set search preferences
function setAHSearchPref(){
    if (document.search.gsa.checked == 1){
        setAHSearchCookie( dirname );
    }else{
        setAHSearchCookie( "community" );
    }
}
 
// Set search preferences cookie
function setAHSearchCookie( p ){
    // set cookie ah_searchpref with a value of the document path
    var expire=new Date();
    expire.setDate(expire.getDate()+365); // Cookie expires after 1 year (365 days) 
    document.cookie="ah_searchpref=" +p+ "; expires=" +expire.toGMTString()+ ";";
}
 
// ]]-->
</script> 
 </form>
<!-- END SEARCH CONTENT -->    
 
 
 
<!-- BEGIN PAGE CONTENT WRAPPER -->
    <div id="page_content_wrapper">
<!-- BEGIN PAGE WRAPPER -->
<table id="page_content_table">
<tr>
<!--#include virtual="recommendations_topic.ssi" -->
<td id="col2">
<!-- BEGIN CONTENT WRAPPER -->
<!-- BEGIN BREADCRUMBS -->
 
      
      <div id="breadcrumb">
        
<ul class="navigation"><li class="prev"><a accesskey="p" class="prev" href="WSc3ff6d0ea77859461172e0811cbf364104-7fe6.html" title="Connecting to Microsoft Access with Unicode"><img src="images/blank.gif" alt="Previous" width="17" height="17" /></a></li><li class="next"><a accesskey="n" class="next" href="WSc3ff6d0ea77859461172e0811cbf364104-7fe4.html" title="Connecting to MySQL"><img src="images/blank.gif" alt="Next" width="17" height="17" /></a></li></ul><div class="hierarchy" id="hierarchy"><a href="WSf01dbd23413dda0e51f089d212047ee7a02-8000.html"><b>Home</b></a> / <a href="WSf01dbd23413dda0e51f089d212047ee7a02-8000.html"><b>Configuring and Administering ColdFusion 10</b></a> / <a href="WSc3ff6d0ea77859461172e0811cbf364104-7ffa.html"><b>Data Source Management</b></a> 
     </div>
 
      </div>
<!-- END BREADCRUMBS -->
      <div id="content_wrapper">
<!-- BEGIN PAGE TITLE -->
        <h1>Connecting to Microsoft SQL Server</h1>
<!-- END PAGE TITLE -->
<!-- BEGIN IONCOMMENTCOUNT -->
        <div id="ionCount">
        </div>
<!-- END IONCOMMENTCOUNT -->
<table id="inner_content_table" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td>
          <div style="border-top:#ccc solid 1px;"><p> </p>
          </div>
<!--#include virtual="contentheader.ssi" -->
 
          <div id="minitoc"><div class="t"><div class="b"><div><ul id="minitoc-links"><li><p><a href="#WSc3ff6d0ea77859461172e0811cbf3639b1-7ff1"><span class="topictitle1">Settings for the Northwind sample database</span>
</a></p><ul><li><p><a href="#WSBFEC4D7C-D68C-4c35-9F5E-566D4E8E713E"><span class="topictitle2">Set up the database in the SQL Server Enterprise manager</span>
</a></p></li><li><p><a href="#WS7EBC2C2B-C1AE-45cf-9374-F468BC63AF0A"><span class="topictitle2">Set up the database in the ColdFusion Administrator</span>
</a></p></li></ul></li><li><p><a href="#WSc3ff6d0ea77859461172e0811cbf3639b1-7fec"><span class="topictitle1">Troubleshooting SQL Server connections</span>
</a></p></li></ul></div></div></div></div><div><p>To see a list of SQL Server versions that ColdFusion
supports, go to <a href="http://www.adobe.com/go/learn_cfu_cfsysreqs_en" target="_self">www.adobe.com/go/learn_cfu_cfsysreqs_en</a>.
Use the settings in the following table to connect ColdFusion to
SQL Server:</p>
 
<div class="tablenoborder"><table border="1" cellpadding="4" cellspacing="0"><thead align="left"><tr><th valign="top" width="NaN%" id="d16e9111"><p>Setting</p>
</th>
<th valign="top" width="NaN%" id="d16e9114"><p>Description</p>
</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="NaN%" headers="d16e9111 "><p>CF Data Source Name</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The data source name (DSN) that ColdFusion
uses to connect to the data source.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Database</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The database to which this data source connects.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Server</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The name of the server that hosts the database
that you want to use. If the database is local, enclose the word <i xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema">local</i> in
parentheses. If you are running SQL Server locally (or using MSDE),
specify 127.0.0.1 for the</p>
<p>server name instead of the actual
instance name.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Port</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The number of the TCP/IP port that the server
monitors for connections.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>User name</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The user name that ColdFusion passes to
the JDBC driver to connect to the data source if a ColdFusion application does
not supply a user name (for example, in a <samp class="codeph">cfquery</samp> tag).</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Password</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The password that ColdFusion passes to the
JDBC driver to connect to the data source if a ColdFusion application does
not supply a password (for example, in a <samp class="codeph">cfquery</samp> tag).</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Description</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>(Optional) A description for this connection.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Connection String</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>A field that passes database-specific parameters,
such as login credentials, to the data source.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Select Method</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>Determines whether server cursors are used
for SQL queries.</p>
<div class="para"><ul><li><p>The Direct method provides more
efficient retrieval of data when you retrieve recordsets in a forward-only direction
and you limit your SQL Server connection to a single open SQL statement
at a time. This is typical for ColdFusion applications.</p>
</li>
<li><p>The Cursor method lets you have multiple open SQL statements
on a connection. This is not typical for ColdFusion applications,
unless you use pooled statements.</p>
</li>
</ul>
</div>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Limit Connections</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>Specifies whether ColdFusion limits the
number of database connections for the data source. If you enable
this option, use the Restrict Connections To field to specify the
maximum.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Restrict Connections To</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>Specifies the maximum number of database
connections for the data source. To use this restriction, enable
the Limit Connections option.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Maintain Connections</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>ColdFusion establishes a connection to a
data source for every operation that requires one. Enable this option
to improve performance by caching the data source connection. </p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>String Format</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>Enable this option if your application uses
Unicode data in DBMS-specific Unicode data types, such as National Character
or nchar.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Max Pooled Statements</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>Enables reuse of prepared statements (that
is, stored procedures and queries that use the <samp class="codeph">cfqueryparam</samp> tag). Although
you tune this setting based on your application, start by setting
it to the sum of the following:</p>
<div class="para"><ul><li><p>Unique <samp class="codeph">cfquery</samp> tags
that use the <samp class="codeph">cfqueryparam</samp> tag</p>
</li>
<li><p>Unique <samp class="codeph">cfstoredproc</samp> tags</p>
</li>
</ul>
</div>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Timeout (min)</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The number of minutes that ColdFusion MX
maintains an unused connection before destroying it.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Interval (min)</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The time (in minutes) that the server waits
between cycles to check for expired data source connections to close.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Disable Connections</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>If selected, suspends all client connections.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Login Timeout (sec)</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The number of seconds before ColdFusion
times out the data source connection login attempt.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>CLOB</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>Select to return the entire contents of
any CLOB/Text columns in the database for this data source. If not
selected, ColdFusion retrieves the number of characters specified
in the Long Text Buffer setting.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>BLOB </p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>Select to return the entire contents of
any BLOB/ Image columns in the database for this data source. If
not selected, ColdFusion retrieves the number of characters specified
in the BLOB Buffer setting.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>LongText Buffer</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The default buffer size, used if Enable
Long Text Retrieval (CLOB) is not selected. The default value is <samp class="codeph">64000</samp> bytes.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>BLOB Buffer</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The default buffer size, used if the BLOB
option is not selected. The default value is <samp class="codeph">64000</samp> bytes.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Allowed SQL</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>The SQL operations that can interact with
the current data source.</p>
</td>
</tr>
<tr><td valign="top" width="NaN%" headers="d16e9111 "><p>Validation query</p>
</td>
<td valign="top" width="NaN%" headers="d16e9114 "><p>Called when a connection from the pool is
resued. This can slow query response time because an additional
query is generated. Configure the validation query just before restarting
the database to verify all connections, but remove the validation
query after restarting the database to avoid any performance loss.</p>
</td>
</tr>
</tbody>
</table>
</div>
<ul class="navlinklist"></ul>
</div>
<div id="WSc3ff6d0ea77859461172e0811cbf3639b1-7ff1" class="nochunk"><a name="WSc3ff6d0ea77859461172e0811cbf3639b1-7ff1"><!-- --></a><h2 class="topictitle2">Settings for the Northwind sample database</h2><div><p>Previous versions of SQL Server included a sample database
named Northwind. Establishing a connection to the Northwind database
can help you learn ColdFusion while using a familiar database.</p>
<p>To establish a connection to the SQL Server Northwind database,
set up the database in the SQL Server Enterprise manager and in
the ColdFusion Administrator.</p>
</div><div id="WSBFEC4D7C-D68C-4c35-9F5E-566D4E8E713E" class="nochunk"><a name="WSBFEC4D7C-D68C-4c35-9F5E-566D4E8E713E"><!-- --></a><h3 class="topictitle3">Set up the database in the SQL Server Enterprise manager</h3><div><ol><li><p>Expand the server group.</p>
</li>
<li><p>Expand the server.</p>
</li>
<li><p>Under the Security folder, right-click on Logins.</p>
</li>
<li><p>Select New Login.</p>
</li>
<li><p>Select Windows Authentication or SQL Server Authentication
settings. </p>
</li>
<li><p>Select the Northwind database, and specify the language.</p>
</li>
<li><p>Ensure that the database server is using mixed authentication.
While in Enterprise Manager, right-click the server, select Properties
&gt; Security and then select the Security tab. Ensure that the
SQL Server and Windows options are clicked.</p>
</li>
<li><p>Click OK.</p>
</li>
</ol>
</div></div><div id="WS7EBC2C2B-C1AE-45cf-9374-F468BC63AF0A" class="nochunk"><a name="WS7EBC2C2B-C1AE-45cf-9374-F468BC63AF0A"><!-- --></a><h3 class="topictitle3">Set up the database in the ColdFusion Administrator</h3><div><ol><li><p>Open the ColdFusion Administrator.</p>
</li>
<li><p>Click Data &amp; Services &gt; Data Sources.</p>
</li>
<li><p>Type <strong>northwind</strong> in the Data Source Name field, and
select Microsoft SQL Server in the Driver drop-down list.</p>
</li>
<li><p>Click Add.</p>
</li>
<li><p>Type <strong>Northwind</strong> in the Database Name field, <strong>127.0.0.1</strong> (or
the database server IP address) in the Server field, and <strong>1433</strong> in
the Port field.</p>
<div class="note"><span class="notetitle">Note:  </span>Do not specify a user name
or password when defining the data source.</div>
</li>
<li><p>Save the data source.</p>
</li>
</ol>
</div></div></div>
<div id="WSc3ff6d0ea77859461172e0811cbf3639b1-7fec" class="nochunk"><a name="WSc3ff6d0ea77859461172e0811cbf3639b1-7fec"><!-- --></a><h2 class="topictitle2">Troubleshooting SQL Server connections</h2><div><p>If you are having trouble establishing a connection to
SQL Server, review the following considerations:</p>
<ul><li><p>If you installed SQL Server using a server name other
than the default, use your chosen domain\servername wherever there’s
a reference to (local).</p>
<p>The following situations can cause
a Connection Refused error:</p>
<ul><li><p>If you specified authentication
information in SQL Server, ensure that you have not defined a user
name and password in the ColdFusion data source.</p>
</li>
<li><p>You are running a connection-limited version of SQL Server
and the request exceeds the limit for TCP/IP connections.</p>
</li>
</ul>
<p>You
can prevent this exception by setting the Limit Connections and
Restrict Connections To options in ColdFusion Administrator on the
Advanced Settings page for the data sources, and specifying a number
less than the SQL Server maximum.</p>
</li>
<li><p>SQL Server does not enable the TCP/IP protocol. This problem
can happen when SQL Server is on the same computer as ColdFusion.
To fix this problem, perform the following steps:</p>
<ol><li><p>In SQL Server Enterprise Manager, right-click on the name
of your SQL Server and click Properties.</p>
</li>
<li><p>Click Network Configuration and the General Tab.</p>
</li>
<li><p>Move TCP/IP from the Disabled Protocols section to the Enabled
Protocols section.</p>
</li>
<li><p>Click OK.</p>
</li>
<li><p>Restart the SQL Server services.</p>
</li>
<li><p>Verify your data source.</p>
</li>
</ol>
</li>
<li><p>If you have are having trouble connecting, consider using
mixed-mode authentication for SQL Server (Windows and SQL) and removing
the user name and password from the ColdFusion data source.</p>
</li>
</ul>
</div></div>
 
 
<!-- BEGIN USER PREFERENCES -->
          <div id="userprefs">
          </div>
<!-- END USER PREFERENCES -->
 
          <div id="related">
            
            
            <div class="separator"><a href="#top"><img src="images/BTT.jpg" /></a>&#160;</div>
          </div>
          <div id="footer">
<!-- BEGIN IONCOMMENTS -->
            <div id="ionComHere">
            </div>
<!-- END IONCOMMENTS -->
<!--#include virtual="/ssi/ionComments.ssi" -->
            <p id="creativecommons"><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" id="creativecommons_text"><img id="creativecommons_img" src="images/CC.png" alt="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License" /></a>&nbsp;Twitter™ and Facebook posts are not covered under the terms of Creative Commons.</p>
          </div>
</td>
<td width="10px"></td>
<td id="inner_rightcolumn">
<!--#include virtual="rightcolumn.ssi" -->
</td></tr></table>
      </div>
<!-- BEGIN BREADCRUMBS -->
      <div id="breadcrumb">
        
<ul class="navigation"><li class="prev"><a accesskey="p" class="prev" href="WSc3ff6d0ea77859461172e0811cbf364104-7fe6.html" title="Connecting to Microsoft Access with Unicode"><img src="images/blank.gif" alt="Previous" width="17" height="17" /></a></li><li class="next"><a accesskey="n" class="next" href="WSc3ff6d0ea77859461172e0811cbf364104-7fe4.html" title="Connecting to MySQL"><img src="images/blank.gif" alt="Next" width="17" height="17" /></a></li></ul><div class="hierarchy" id="hierarchy"><a href="WSf01dbd23413dda0e51f089d212047ee7a02-8000.html"><b>Home</b></a> / <a href="WSf01dbd23413dda0e51f089d212047ee7a02-8000.html"><b>Configuring and Administering ColdFusion 10</b></a> / <a href="WSc3ff6d0ea77859461172e0811cbf364104-7ffa.html"><b>Data Source Management</b></a> 
     </div>
 
      </div>
<!-- END BREADCRUMBS -->
<!-- END CONTENT WRAPPER -->
<!--#include virtual="contentfooter.ssi" -->
</td>
<td id="col3">
    <div>
        <img src="images/adobe-lq.png" />
    </div>
</td>
</tr>
</table>
    </div>
<!-- END PAGE CONTENT WRAPPER -->
<script type="text/javascript">
<!--[CDATA[
scrollToNameAnchor();
// ]]-->
</script> 
<!--#include virtual="/en_US/ssi/productmenu.ssi" -->
<style>
#legal-notices{ 
    margin:10px 40px; 
    font-size:11px;
}
</style>
 
<p id="legal-notices">
<script language="javascript">
var pageLoc = "en_US";
var metaElements = document.all ?
document.all.tags('meta') :
document.getElementsByTagName ?
document.getElementsByTagName ('meta') : new Array();
for (var m = 0; m < metaElements.length; m++) {
    if (metaElements[m].name == "lang") {
        pageLoc = metaElements[m].content;
        break;
    }
}
var ptn = /(..)-(..)/;
if (ptn.test(pageLoc)) {
    var languageCode = pageLoc.replace(ptn, "$1");
    var countryCode = pageLoc.replace(ptn, "$2");
    pageLoc = languageCode + "_" + countryCode.toUpperCase();
}
 
var legalLoc = "en_US";
var legalText = "Legal Notices";
var legalPath = legalLoc;
var legalArray=[
"ar_AE", "إشعارات قانونية",
"bg_BG", "Юридически бележки",
"cs_CZ", "Právní upozornění",
"da_DK", "Juridiske meddelelser",
"de_DE", "Rechtliche Hinweise",
"el_GR", "Σημειώσεις νομικού περιεχομένου",
"es_ES", "Avisos legales",
"et_EE", "Juriidilised teated",
"fi_FI", "Lakisääteiset ilmoitukset",
"fr_FR", "Mentions légales",
"he_IL", "הצהרות משפטיות",
"hr_HR", "Pravne napomene",
"hu_HU", "Jogi közlemények",
"it_IT", "Informazioni legali",
"ja_JP", "法律上の注意",
"ko_KR", "법적 고지 사항",
"lt_LT", "Teisinės pastabos",
"lv_LV", "Juridisks paziņojums",
"nb_NO", "Juridiske merknader",
"nl_NL", "Juridische kennisgevingen",
"pl_PL", "Informacje prawne",
"pt_BR", "Aspectos jurídicos",
"ro_RO", "Prevederi legale",
"ru_RU", "Юридическая информация",
"sk_SK", "Právne upozornenie",
"sl_SI", "Pravni pouk",
"sv_SE", "Upphovsrätt",
"tr_TR", "Yasal uyarılar",
"uk_UA", "Юридична інформація",
"zh_CN", "法律声明",
"zh_TW", "法律注意事項"
];
 
for (var i = 0; i < legalArray.length; i+=2) {
    if (pageLoc == legalArray[i]) {
        legalLoc = pageLoc;
        legalText = legalArray[i+1];
        legalPath = legalLoc;
        break;
    }
}
document.write('<a target="_blank" href="http://help.adobe.com/'+legalPath+'/legalnotices/index.html">'+legalText+'</a>');
</script>
</p>
 
<!--#include virtual="/en_US/ssi/localfooter.ssi" -->
<!--#include virtual="footer.ssi" -->
<!--#include virtual="/ubi/analytics/analytics_ssi.html" -->
  </body>
</html>